This repository was archived by the owner on Feb 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -947,9 +947,25 @@ function build_gcc_final()
947947 # to accomodate for the huge files.
948948 run_verbose make -j 1 INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0" all-gcc
949949
950- # Compile the libraries.
951- run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0"
952- # make INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
950+ if [ " ${TARGET_PLATFORM} " == " darwin" ]
951+ then
952+ if [ " ${IS_DEVELOP} " == " y" ]
953+ then
954+ # Compile the libraries.
955+ run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0"
956+ else
957+ # Retry, parallel builds do fail, headers are probably
958+ # used before being installed. For example:
959+ # libstdc++-v3/include/chrono:43:10: fatal error: bits/parse_numbers.h: No such file or directory
960+ run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0" \
961+ || run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0" \
962+ || run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0" \
963+ || run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0"
964+ fi
965+ else
966+ # Compile the libraries.
967+ run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS=" -DUSE_TM_CLONE_REGISTRY=0"
968+ fi
953969
954970 if [ " ${WITH_STRIP} " == " y" ]
955971 then
You can’t perform that action at this time.
0 commit comments