File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,22 @@ lm.bindir = "bin"
7
7
lm .EXE_DIR = " "
8
8
9
9
if platform .OS == ' macOS' then
10
- if lm .platform == " darwin-arm64" then
10
+ if lm .platform == nil then
11
+ elseif lm .platform == " darwin-arm64" then
11
12
lm .target = " arm64-apple-macos11"
12
- else
13
+ elseif lm . platform == " darwin-x64 " then
13
14
lm .target = " x86_64-apple-macos10.12"
15
+ else
16
+ error " unknown platform"
14
17
end
15
- end
16
-
17
- if platform .OS == ' Windows' then
18
- if lm .platform == " win32-ia32" then
18
+ elseif platform .OS == ' Windows' then
19
+ if lm .platform == nil then
20
+ elseif lm .platform == " win32-ia32" then
19
21
lm .arch = " x86"
20
- else
22
+ elseif lm . platform == " win32-x64 " then
21
23
lm .arch = " x86_64"
24
+ else
25
+ error " unknown platform"
22
26
end
23
27
end
24
28
You can’t perform that action at this time.
0 commit comments