Skip to content

Commit 0b1d706

Browse files
authored
Fix build script (#4446)
1 parent d668a1a commit 0b1d706

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fast_tokenizer/run_build_py_lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ do
2424
then
2525
export LD_LIBRARY_PATH=/opt/_internal/cpython-3.${py_version}.0/lib/:${LD_LIBRARY_PATH}
2626
export PATH=/opt/_internal/cpython-3.${py_version}.0/bin/:${PATH}
27-
core_num=${nproc}
27+
core_num=`nproc`
2828
else
2929
export LD_LIBRARY_PATH=/Users/paddle/miniconda2/envs/py3${py_version}/lib/:${LD_LIBRARY_PATH}
3030
export PATH=/Users/paddle/miniconda2/envs/py3${py_version}/bin/:${PATH}
31-
core_num=${sysctl -n hw.logicalcpu}
31+
core_num=`sysctl -n hw.logicalcpu`
3232
fi
3333
echo "Compile with $core_num cores"
3434
cmake .. -DWITH_PYTHON=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release

0 commit comments

Comments
 (0)