Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit bed5d1f

Browse files
committed
container-app: compile gcc with -j1
1 parent d3bc80b commit bed5d1f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/container-apps-functions-source.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ function build_gcc_first()
378378

379379
# Build.
380380
# No need to make 'all', 'all-gcc' is enough to compile the libraries.
381-
run_verbose make -j ${JOBS} all-gcc
381+
# Disable parallel build to accomodate for the huge files.
382+
run_verbose make -j 1 all-gcc
382383

383384
# No -strip available here.
384385
run_verbose make install-gcc
@@ -940,7 +941,11 @@ function build_gcc_final()
940941
# This is a workaround. Better approach is have a t-* to set this flag via
941942
# CRTSTUFF_T_CFLAGS
942943

943-
# Parallel builds may fail.
944+
# Disable parallel build for the compiler itself,
945+
# to accomodate for the huge files.
946+
run_verbose make -j 1 INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" all-gcc
947+
948+
# Compile the libraries.
944949
run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
945950
# make INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
946951

@@ -982,8 +987,8 @@ function build_gcc_final()
982987
# Build.
983988
# For Windows build only the GCC binaries, the libraries were copied
984989
# from the Linux build.
985-
run_verbose make -j ${JOBS} all-gcc
986-
# make all-gcc
990+
# Disable parallel build to accomodate for the huge files.
991+
run_verbose make -j 1 all-gcc
987992

988993
# No -strip here.
989994
run_verbose make install-gcc

0 commit comments

Comments
 (0)