- project is required when runtime/CMakeList.txt is the top-level CMakeList.txt file. This will establish version and policy settings.
Details
Diff Detail
- Build Status
Buildable 9722 Build 9722: arc lint + arc unit
Event Timeline
runtimes/CMakeLists.txt | ||
---|---|---|
448 | Is this dependency needed now? I assume runtimes depends on runtimes-configure, but maybe I am mistaken. |
Chris, can you look at this change? This can help simplify the build setup for the Clang used in Android.
runtimes/CMakeLists.txt | ||
---|---|---|
448 | Uh... This part of the patch should be done differently. This hack is in place because of how clang finds c++ headers relative to itself, so we need to configure the runtimes directory (which copies the c++ headers) otherwise we can't actually build anything with the stage1 compiler. Making clang-bootstrap-deps depend on the runtimes target should be done separately only if the next stage build is intending to link against runtime libraries from the stage1 build, and even then I'm not sure we should be depending on the runtimes target, I'd much rather the dependency was setup on the top-level target for the runtime library (i.e. libcxx, libunwind, compiler-rt...). |
runtimes/CMakeLists.txt | ||
---|---|---|
448 | I agree. Shall we bring some new variables like LLVM_USE_STAGE1_LIBCXX, LLVM_USE_STAGE1_LIBUNWIND ...? |
runtimes/CMakeLists.txt | ||
---|---|---|
448 | Configuring the bootstrap builds is currently done in Clang, not LLVM. We probably want an option like BOOTSTRAP_USE_<libname> which we can interpret in <clang>/CMakeLists.txt where we handle the other bootstrap options. We don't want the option to name a specific stage because we do support many-layered bootstraps. |
runtimes/CMakeLists.txt | ||
---|---|---|
448 | I reverted this change and I'll bring a new patch to add bootstrap options. |
runtimes/CMakeLists.txt | ||
---|---|---|
448 | By using BOOTSTRAP_USE_<libname>, it will also pass USE_<libname> as variables to stage2 because the variables start with BOOTSTRAP_. To avoid passing unused variables, shall we use CLANG_BOOTSTRAP_USE_<libname> or something better? |
runtimes/CMakeLists.txt | ||
---|---|---|
448 | Good call. CLANG_BOOTSTRAP_... is a good way to go. |
Is this dependency needed now? I assume runtimes depends on runtimes-configure, but maybe I am mistaken.