Skip to content

Commit 547078f

Browse files
committed
[ATfL] Make sure the bootstrap compiler is being built with -O2, not -O3
According to CMake default settings: CMAKE_ASM_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_ASM_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG As we want the bootstrap compiler to be stablest possible, we'd rather build it at O2 than O3 optimization level.
1 parent 5e29b5b commit 547078f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arm-software/linux/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ bootstrap_compiler_build() {
269269

270270
run_command cmake ${CMAKE_ARGS} -G Ninja "${SOURCES_DIR}/llvm" \
271271
-DBUILD_SHARED_LIBS=False \
272-
-DCMAKE_BUILD_TYPE=Release \
272+
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
273273
-DCMAKE_SKIP_RPATH=No \
274274
-DCMAKE_SKIP_INSTALL_RPATH=No \
275275
-DCMAKE_INSTALL_PREFIX="${BUILD_DIR}/bootstrap_compiler" \

0 commit comments

Comments
 (0)