Skip to content

Commit daa53a0

Browse files
committed
build: Match OS with a wildcard to allow OS version to be specified.
No idea how to do this in build.bat, so only making the change here for now.
1 parent 2fd9c31 commit daa53a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ TARGET_OS_AND_ABI=${TARGET#*-} # Example: linux-gnu
1414
# Here we map the OS from the target triple to the value that CMake expects.
1515
TARGET_OS_CMAKE=${TARGET_OS_AND_ABI%-*} # Example: linux
1616
case $TARGET_OS_CMAKE in
17-
macos) TARGET_OS_CMAKE="Darwin";;
18-
freebsd) TARGET_OS_CMAKE="FreeBSD";;
19-
windows) TARGET_OS_CMAKE="Windows";;
20-
linux) TARGET_OS_CMAKE="Linux";;
17+
macos*) TARGET_OS_CMAKE="Darwin";;
18+
freebsd*) TARGET_OS_CMAKE="FreeBSD";;
19+
windows*) TARGET_OS_CMAKE="Windows";;
20+
linux*) TARGET_OS_CMAKE="Linux";;
2121
native) TARGET_OS_CMAKE="";;
2222
esac
2323

0 commit comments

Comments
 (0)