Build script: Fix strip flag being lost across MSYSTEMs

This commit is contained in:
RichardG867
2021-12-01 17:39:09 -03:00
parent a128a51865
commit 67df8cd8c6

View File

@@ -190,7 +190,9 @@ then
# Call build with the correct MSYSTEM.
echo [-] Switching to MSYSTEM [$msys]
cd "$cwd"
CHERE_INVOKING=yes MSYSTEM="$msys" bash -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$cmake_flags"
strip_arg=
[ $strip -ne 0 ] && strip_arg="-t "
CHERE_INVOKING=yes MSYSTEM="$msys" bash -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$strip_arg""$cmake_flags"
exit $?
fi
else