[haiku-development] Re: Cross-compiling Haiku with jam: how to make clean?

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 11 Aug 2017 13:24:54 +0000

11 août 2017 15:12 "Thomas Mueller" <mueller6723@xxxxxxx> a écrit:

When cross-compiling Haiku from FreeBSD, after the cross-tools have been 
successfully built and I
run "jam -q @anyboot-image", how do I clean out for the next run?

With make, there is "make clean", "make distclean, etc, but how do I do that 
with jam?

I tried "jam clean", but that was no good.

jam clean does clean some things but not everything.
Usually the simplest way is to delete generated/objects, and possibly 
generated/downloads and generated/build_packages.


Also, how do I get the building process to stick to the proper gcc, instead 
of going to clang,
which screws up?

I have no experience with doing this, but my guess would be that you need to 
export CC and CXX environment variables pointing to the right compiler. You 
need to do this before running the configure script, as the same compiler will 
also be used at configure time to compile the cross-tools.

-- 
Adrien.

Other related posts: