[PATCH] D84038: Passing the flag bigobj globally when building debug compiler on Windows
Aaron Ballman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 18 09:32:28 PDT 2020
aaron.ballman added inline comments.
================
Comment at: clang/CMakeLists.txt:417
+if (MSVC)
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj /FS")
----------------
Why only for debug builds instead of all builds?
================
Comment at: clang/CMakeLists.txt:418
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj /FS")
+ endif()
----------------
Do we really need to force synchronous generation of PDB files? This bit from the docs worries me "This may make builds significantly longer, and it doesn't prevent all errors that may occur when multiple instances of cl.exe access the PDB file at the same time."
================
Comment at: llvm/CMakeLists.txt:604
+if (MSVC)
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
----------------
Same question here about debug builds.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84038/new/
https://reviews.llvm.org/D84038
More information about the llvm-commits
mailing list