Skip to content

Commit d23479e

Browse files
tutu29Mykola Tryshnivskyy
authored andcommitted
fix gyp interpretor issue in build.sh
1 parent 50eda67 commit d23479e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ do
3535
for mode in $modes
3636
do
3737
cd $current_dir
38-
gyp --depth . -G output_dir=. -D platform=$platform -D mode=$mode -D ROOT_PATH=${base_output_gen} -D QT_DIR=${qt_dir} --generator-output=${output_gen}/$platform/$mode wd.gyp
38+
GYP=`which gyp`
39+
python $GYP --depth . -G output_dir=. -D platform=$platform -D mode=$mode -D ROOT_PATH=${base_output_gen} -D QT_DIR=${qt_dir} --generator-output=${output_gen}/$platform/$mode wd.gyp
3940
[ $? -ne 0 ] && exit 1
4041
cd ${output_gen}/$platform/$mode
4142
[ $? -ne 0 ] && echo "**** ERROR: Can't access to ${output_gen}/$platform/$mode" && exit 1

0 commit comments

Comments
 (0)