[flang] Reduce number of threads used for building.

This is to avoid running out of memory on some builds.

Original-commit: flang-compiler/f18@f8abe443cf
Reviewed-on: https://github.com/flang-compiler/f18/pull/823
This commit is contained in:
David Truby 2019-11-14 15:16:15 +00:00
parent 877b26598d
commit 056f5f73b7
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ def clang(arch):
"dnf -y install clang cmake ninja-build lld llvm-devel libcxx-devel diffutils", "dnf -y install clang cmake ninja-build lld llvm-devel libcxx-devel diffutils",
"mkdir build && cd build", "mkdir build && cd build",
'env CC=clang CXX=clang++ CXXFLAGS="-UNDEBUG -stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..', 'env CC=clang CXX=clang++ CXXFLAGS="-UNDEBUG -stdlib=libc++" LDFLAGS="-fuse-ld=lld" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
"ninja -j16", "ninja -j12",
"ctest --output-on-failure -j24", "ctest --output-on-failure -j24",
], ],
}, },
@ -30,7 +30,7 @@ def gcc(arch):
"dnf -y install cmake ninja-build g++ llvm-devel diffutils", "dnf -y install cmake ninja-build g++ llvm-devel diffutils",
"mkdir build && cd build", "mkdir build && cd build",
'env CC=gcc CXX=g++ CXXFLAGS="-UNDEBUG" LDFLAGS="-fuse-ld=gold" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..', 'env CC=gcc CXX=g++ CXXFLAGS="-UNDEBUG" LDFLAGS="-fuse-ld=gold" cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..',
"ninja -j16", "ninja -j12",
"ctest --output-on-failure -j24", "ctest --output-on-failure -j24",
], ],
}, },