[clang] [CMake] Add a cache file for building a highly-optimized LLVM toolchain (PR #117802)

Tom Stellard via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 9 12:51:36 PST 2025


================
@@ -0,0 +1,17 @@
+# Stage 1
+# * Build an LTO optimized libcxx, so we can staticially link it into stage 2
+#   clang.
+
+
+set(CMAKE_BUILD_TYPE Release CACHE STRING "")
+set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
+set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "" FORCE)
----------------
tstellar wrote:

FORCE isn't required in the stage1 spec, so I'll remove it.

https://github.com/llvm/llvm-project/pull/117802


More information about the cfe-commits mailing list