Skip to content

Commit 0144de7

Browse files
committed
[ATfL] RelWithDebInfo takes too much time and space when building the bootstrap compiler, force using -O2 on a Release build
1 parent 1196ad7 commit 0144de7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arm-software/linux/build.sh

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

270270
run_command cmake ${CMAKE_ARGS} -G Ninja "${SOURCES_DIR}/llvm" \
271271
-DBUILD_SHARED_LIBS=False \
272-
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
272+
-DCMAKE_BUILD_TYPE=Release \
273+
-DCMAKE_ASM_FLAGS_RELEASE="-O2 -DNDEBUG" \
274+
-DCMAKE_CXX_FLAGS_RELEASE="-O2 -DNDEBUG" \
275+
-DCMAKE_C_FLAGS_RELEASE="-O2 -DNDEBUG" \
273276
-DCMAKE_SKIP_RPATH=No \
274277
-DCMAKE_SKIP_INSTALL_RPATH=No \
275278
-DCMAKE_INSTALL_PREFIX="${BUILD_DIR}/bootstrap_compiler" \

0 commit comments

Comments
 (0)