Skip to content

Commit f71884f

Browse files
authored
MSYS: Add support for UCRT64 and CLANG64 (#7360)
#changelog #mingw
1 parent 9885c9e commit f71884f

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

scripts/dev/download_libs.sh

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,15 @@ EOF
135135
exit 1
136136
fi
137137
elif [ "$PLATFORM" == "msys2" ]; then
138-
if [ "$MSYSTEM" == "MINGW64" ]; then
139-
ARCH=64
140-
elif [ "$MSYSTEM" == "MINGW32" ]; then
141-
ARCH=32
142-
else
143-
cat << EOF
144-
This MSYS2 variant ($MSYSTEM) is not recognized.
145-
Check if you are running a MINGW32 or MINGW64 shell.
146-
Assuming 32bits version for now...
147-
EOF
148-
ARCH=32
149-
fi
138+
if [ "$MSYSTEM" == "MINGW64" ]; then
139+
ARCH=mingw64
140+
elif [ "$MSYSTEM" == "MINGW32" ]; then
141+
ARCH=mingw32
142+
elif [ "$MSYSTEM" == "UCRT64" ]; then
143+
ARCH=ucrt64
144+
elif [ "$MSYSTEM" == "CLANG64" ]; then
145+
ARCH=clang64
146+
fi
150147
fi
151148
fi
152149

@@ -158,7 +155,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
158155
cd "$SCRIPT_DIR"
159156

160157
if [ "$PLATFORM" == "msys2" ]; then
161-
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_mingw${ARCH}.zip"
158+
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}.zip"
162159
elif [ "$ARCH" == "" ] && [ "$PLATFORM" == "vs" ]; then
163160
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_64_1.zip \
164161
openFrameworksLibs_${VER}_${PLATFORM}_64_2.zip \

scripts/msys2/compileOF.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ while getopts tj: opt ; do
1717
esac
1818
done
1919

20-
if [ "${MSYSTEM:0:5}" != "MINGW" ]
21-
then
22-
echo "This is not a MINGW(32|64) shell!"
23-
echo "Please launch compileOF.sh from a MINGW(32|64) shell."
24-
exit 1
25-
fi
26-
2720
cd ${SCRIPTPATH}/../../libs/openFrameworksCompiled/project
2821

2922
if [ -v CI ]; then

0 commit comments

Comments
 (0)