beanz added a comment.

You should split the CMake cache file you created into two files, (1) a CMake 
Cache to manage the build configuration and (2) a tool chain file for targeting 
Linux. As @semeenai pointed out we absolutly want the behavior of the toolchain 
file being loaded multiple times. That is the correct way this build should 
work.

For bootstrap builds where you want the stage1 to run on your build host, you 
should be able to set `BOOTSTRAP_CMAKE_TOOLCHAIN_FILE` in the first stage 
build, to signal to the first stage build that the second stage will be 
cross-compiled, and we can customize the multi-stage dependencies correctly 
based on that. That avoids the need for the `ADDITIONAL_CLANG_BOOTSTRAP_DEPS` 
variable, which feels a bit hacky to me.


Repository:
  rC Clang

https://reviews.llvm.org/D41660



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to