From b05b713926f54fd7da74e92af9d84dd12721104f Mon Sep 17 00:00:00 2001 From: Christopher Sean Morrison Date: Thu, 8 Feb 2024 10:00:51 -0500 Subject: [PATCH] try turning off .pdb and .ilk generation. --- llvm/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index ee546357..a1ef3997 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -73,6 +73,9 @@ if (ENABLE_LLVM) -DCMAKE_INSTALL_PREFIX=${CMAKE_BUNDLE_INSTALL_PREFIX} -DCMAKE_INSTALL_LIBDIR:PATH=${LIB_DIR} -DCMAKE_INSTALL_RPATH=${CMAKE_BUNDLE_INSTALL_PREFIX}/${LIB_DIR} + # we don't need LLVM itself to be debuggable. Prevents .pdb and .ilk bloat. + -DCMAKE_CXX_FLAGS_DEBUG="$<$:/DEBUG:NONE>" + -DCMAKE_EXE_LINKER_FLAGS_DEBUG="$<$:/DEBUG:NONE /INCREMENTAL:NO>" LOG_CONFIGURE ${EXT_BUILD_QUIET} LOG_BUILD ${EXT_BUILD_QUIET} LOG_INSTALL ${EXT_BUILD_QUIET}