Skip to content

Commit ca500f1

Browse files
committed
Use cpu count for python build.
1 parent 504e5f9 commit ca500f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.mac.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export "LDFLAGS=-L${PREFIX}/lib"
279279
ax_cv_c_float_words_bigendian=no \
280280
___ORIG_DEPS_PREFIX=${PREFIX}___
281281

282-
make -j 32 \
282+
make -j $(sysctl -n hw.ncpu) \
283283
PROFILE_TASK='./Lib/test/regrtest.py -j 8 -x test_bsddb3 test_compiler test_cpickle test_cprofile test_dbm_dumb test_dbm_ndbm test_distutils test_ensurepip test_gdb test_io test_linuxaudiodev test_multiprocessing test_ossaudiodev test_platform test_pydoc test_socketserver test_subprocess test_sundry test_thread test_threaded_import test_threadedtempfile test_threading test_threading_local test_threadsignals test_xmlrpc test_zipfile' \
284284
profile-opt
285285

@@ -318,4 +318,3 @@ $ELEVATE ln -s base "$target/dependency_libs/xz"
318318
$ELEVATE ln -s base "$target/dependency_libs/zlib"
319319

320320
$ELEVATE "$target/bin/python${long_version}" -m rebuildpython
321-

0 commit comments

Comments
 (0)