Skip to content

Commit 75fe70f

Browse files
committed
handle -platform by make.lua
1 parent 74295a9 commit 75fe70f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

make.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ local exe = platform.OS == 'Windows' and ".exe" or ""
55
lm.bindir = "bin"
66

77
lm.EXE_DIR = ""
8+
9+
if lm.platform == "darwin-arm64" then
10+
lm.target = "arm64-apple-macos11"
11+
else
12+
lm.target = "x86_64-apple-macos10.12"
13+
end
14+
15+
if lm.platform == "win32-ia32" then
16+
lm.target = "x86"
17+
else
18+
lm.target = "x86_64"
19+
end
20+
821
lm:import "3rd/bee.lua/make.lua"
922

1023
lm:source_set 'lpeglabel' {

0 commit comments

Comments
 (0)