[clang] c7cc756 - [CMake] Add option to disable driver build in Fuchsia cache file
Alex Brachet via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 08:22:22 PDT 2023
Author: Alex Brachet
Date: 2023-09-05T15:22:15Z
New Revision: c7cc756ce343808d03999969de1b45e2b0747f62
URL: https://github.com/llvm/llvm-project/commit/c7cc756ce343808d03999969de1b45e2b0747f62
DIFF: https://github.com/llvm/llvm-project/commit/c7cc756ce343808d03999969de1b45e2b0747f62.diff
LOG: [CMake] Add option to disable driver build in Fuchsia cache file
Linking the driver binary can take a long time, particularly with debug
info. This adds an option to disable the driver build meant for local use.
Differential Revision: https://reviews.llvm.org/D159130
Added:
Modified:
clang/cmake/caches/Fuchsia-stage2.cmake
Removed:
################################################################################
diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake
index 3283c551ccb7cf..4890040b1b6a2b 100644
--- a/clang/cmake/caches/Fuchsia-stage2.cmake
+++ b/clang/cmake/caches/Fuchsia-stage2.cmake
@@ -31,7 +31,10 @@ set(LLDB_ENABLE_LIBEDIT OFF CACHE BOOL "")
if(WIN32)
set(LLVM_USE_CRT_RELEASE "MT" CACHE STRING "")
-else()
+ set(FUCHSIA_DISABLE_DRIVER_BUILD ON)
+endif()
+
+if (NOT FUCHSIA_DISABLE_DRIVER_BUILD)
set(LLVM_TOOL_LLVM_DRIVER_BUILD ON CACHE BOOL "")
set(LLVM_DRIVER_TARGET llvm-driver)
endif()
More information about the cfe-commits
mailing list