mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 22:06:06 +00:00

Building the Apple way turns off plugin support, meaning we don't need to export unloadable symbols from all executables. While deadstripping effects aren't expected to change, enabling this across all tools prevents the creation of export tries. This saves us ~3.5 MB in just the universal build of `clang`.
10 lines
366 B
CMake
10 lines
366 B
CMake
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "")
|
|
|
|
set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "")
|
|
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
|
|
set(LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES OFF CACHE BOOL "")
|
|
|
|
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
|
|
set(LIBCXX_ENABLE_STATIC OFF CACHE BOOL "")
|