From 67df8cd8c6da0eccbb3acf878cc7231d5c1074af Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 1 Dec 2021 17:39:09 -0300 Subject: [PATCH] Build script: Fix strip flag being lost across MSYSTEMs --- .ci/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/build.sh b/.ci/build.sh index 6cb5467f3..b0c22f671 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -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