[PATCH] D41660: [cmake] Add new linux toolchain file

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 08:58:42 PST 2018


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





More information about the cfe-commits mailing list