summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2021-12-15 01:23:22 +0800
committersumneko <sumneko@hotmail.com>2021-12-15 01:23:22 +0800
commit90861b509d62c59ee32212ee2dda2d2fb4f04ff1 (patch)
tree23136f46dc1d212b85701fc0e0b0c10d93d6d584
parent84f5b23bf5ffcf0a3347a59c3cd632de2e5eec26 (diff)
downloadlua-language-server-90861b509d62c59ee32212ee2dda2d2fb4f04ff1.zip
Im too fool
-rw-r--r--make.lua20
1 files changed, 12 insertions, 8 deletions
diff --git a/make.lua b/make.lua
index 7c7820e9..f08778e9 100644
--- a/make.lua
+++ b/make.lua
@@ -6,16 +6,20 @@ lm.bindir = "bin"
lm.EXE_DIR = ""
-if lm.platform == "darwin-arm64" then
- lm.target = "arm64-apple-macos11"
-else
- lm.target = "x86_64-apple-macos10.12"
+if platform.OS == 'macOS' then
+ if lm.platform == "darwin-arm64" then
+ lm.target = "arm64-apple-macos11"
+ else
+ lm.target = "x86_64-apple-macos10.12"
+ end
end
-if lm.platform == "win32-ia32" then
- lm.target = "x86"
-else
- lm.target = "x86_64"
+if platform.OS == 'Windows' then
+ if lm.platform == "win32-ia32" then
+ lm.target = "x86"
+ else
+ lm.target = "x86_64"
+ end
end
lm:import "3rd/bee.lua/make.lua"