Skip to content

Commit 5a3e3cc

Browse files
committed
Replace parallel compilation option -j with env variable for the purpose since it doesn't work on multiarch build arch64.
1 parent 9485113 commit 5a3e3cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildscripts/make_dependencies.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ else
6262
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -Dcrosscompile_ARCH="$GCC_ARCH" \
6363
-DCMAKE_TOOLCHAIN_FILE=$BUILDSCRIPTS_DIR/toolchain.cmake
6464
fi
65-
cmake --build . -j "$NUM_CPU"
65+
export CMAKE_BUILD_PARALLEL_LEVEL="$NUM_CPU"
66+
cmake --build .
6667
cmake --install .
6768
[ -d "$INSTALL_DIR/lib64" ] && mv "$INSTALL_DIR/lib64" "$INSTALL_DIR/lib"
6869
popd

0 commit comments

Comments
 (0)