Skip to content

Commit eae6033

Browse files
authored
Update paddle_build.sh
1 parent 87b1117 commit eae6033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function cmake_gen() {
6868
# including cp27-cp27m and cp27-cp27mu.
6969
PYTHON_FLAGS=""
7070
SYSTEM=`uname -s`
71-
if [ SYSTEM == "Darwin" ]; then
71+
if [ "$SYSTEM" == "Darwin" ]; then
7272
if [ "$1" == "cp27-cp27m" || "$1" == "" ]; then
7373
echo "using python abi: $1"
7474
if [ -d "/Library/Frameworks/Python.framework/Versions/2.7" ]; then
@@ -77,7 +77,7 @@ function cmake_gen() {
7777
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/:{PATH}
7878
PYTHON_FLAGS="-DPYTHON_EXECUTABLE:FILEPATH=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
7979
-DPYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
80-
-DPYTHON_LIBRARIES:FILEPATH=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib"
80+
-DPYTHON_LIBRARY:FILEPATH=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib"
8181
else
8282
exit 1
8383
fi

0 commit comments

Comments
 (0)