diff options
author | 2018-10-30 12:59:59 +0100 | |
---|---|---|
committer | 2018-10-31 09:01:01 +0100 | |
commit | 185a0a7028b4bb01b749d80054d4de6f09a22d90 (patch) | |
tree | 3294c8fe4b238966d5b599ad19ffdec9447638c3 /tools/run_tests/helper_scripts | |
parent | e573316ec3e2ef35ab3afa0d92acd333504c482e (diff) |
add python monkey-patch for parallel build_ext compilation
Diffstat (limited to 'tools/run_tests/helper_scripts')
-rwxr-xr-x | tools/run_tests/helper_scripts/build_python.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/helper_scripts/build_python.sh b/tools/run_tests/helper_scripts/build_python.sh index b0751300f8..eb3ea9e1f5 100755 --- a/tools/run_tests/helper_scripts/build_python.sh +++ b/tools/run_tests/helper_scripts/build_python.sh @@ -114,6 +114,10 @@ export CFLAGS="-I$ROOT/include -std=gnu99 -fno-wrapv $CFLAGS" export GRPC_PYTHON_BUILD_WITH_CYTHON=1 export LANG=en_US.UTF-8 +# Allow build_ext to build C/C++ files in parallel +# by enabling a monkeypatch. It speeds up the build a lot. +export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=4 + # If ccache is available on Linux, use it. if [ "$(is_linux)" ]; then # We're not on Darwin (Mac OS X) |