From eccd477ce312c54e317876ca714c661325f3e318 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 21 Sep 2021 10:44:08 +0200 Subject: [PATCH] Add CMAKE_BUILD_TYPE to the list of BOOTSTRAP_DEFAULT_PASSTHROUGH variables When building clang in stage2, when -DCMAKE_BUILD_TYPE=RelWithDebInfo is set, the developer can expect that the stage2 clang is built using the same mode. Especially as the performances are much worst in debug mode. (Principle of least astonishment) Differential Revision: https://reviews.llvm.org/D53014 --- clang/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 29ceef8a4bd3..6e18e74c6294 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -706,6 +706,7 @@ if (CLANG_ENABLE_BOOTSTRAP) CMAKE_CXX_COMPILER_LAUNCHER CMAKE_MAKE_PROGRAM CMAKE_OSX_ARCHITECTURES + CMAKE_BUILD_TYPE LLVM_ENABLE_PROJECTS LLVM_ENABLE_RUNTIMES)