Skip to content

Commit 59bef37

Browse files
committed
Update kmake
1 parent 8187be1 commit 59bef37

9 files changed

Lines changed: 25 additions & 11 deletions

File tree

.gitmodules

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
url = https://github.com/Kode/KoreTools_windows_x64.git
44
branch = main
55
shallow = true
6-
[submodule "Tools/macos"]
7-
path = Tools/macos
8-
url = https://github.com/Kode/KoreTools_macos.git
9-
branch = main
10-
shallow = true
116
[submodule "Tools/linux_x64"]
127
path = Tools/linux_x64
138
url = https://github.com/Kode/KoreTools_linux_x64.git
@@ -28,3 +23,13 @@
2823
url = https://github.com/Kode/KoreTools_freebsd_x64.git
2924
branch = main
3025
shallow = true
26+
[submodule "tools/macos_x64"]
27+
path = tools/macos_x64
28+
url = https://github.com/Kode/KoreTools_macos_x64.git
29+
branch = main
30+
shallow = true
31+
[submodule "Tools/macos_arm64"]
32+
path = Tools/macos_arm64
33+
url = https://github.com/Kode/KoreTools_macos_arm64.git
34+
branch = main
35+
shallow = true

Tools/linux_arm

Tools/linux_arm64

Tools/linux_x64

Tools/macos

Lines changed: 0 additions & 1 deletion
This file was deleted.

Tools/macos_arm64

Submodule macos_arm64 added at 04c9b76

Tools/macos_x64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b16a4efe1db93443dc1557023490e13dc0a58b39

Tools/platform.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
1111
exit 1
1212
fi
1313
elif [[ "$OSTYPE" == "darwin"* ]]; then
14-
KORE_PLATFORM=macos
14+
MACHINE_TYPE=`uname -m`
15+
if [[ "$MACHINE_TYPE" == "arm64"* ]]; then
16+
KORE_PLATFORM=macos_arm64
17+
elif [[ "$MACHINE_TYPE" == "x86_64"* ]]; then
18+
KORE_PLATFORM=macos_x64
19+
else
20+
echo "Unknown macOS machine '$MACHINE_TYPE', please edit Tools/platform.sh"
21+
exit 1
22+
fi
1523
elif [[ "$OSTYPE" == "FreeBSD"* ]]; then
1624
KORE_PLATFORM=freebsd_x64
1725
elif [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then

0 commit comments

Comments
 (0)