summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2021-12-15 01:16:35 +0800
committersumneko <sumneko@hotmail.com>2021-12-15 01:16:35 +0800
commit75fe70f039778f2161802dd66f3002e1faca27b8 (patch)
treeb6a6399fea75f12bc81796cc2d6b5bc0bc773dfe
parent74295a9fa0456256310269523ba84a785eec6d0a (diff)
downloadlua-language-server-75fe70f039778f2161802dd66f3002e1faca27b8.zip
handle `-platform` by `make.lua`
-rw-r--r--make.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/make.lua b/make.lua
index fe7ea471..7c7820e9 100644
--- a/make.lua
+++ b/make.lua
@@ -5,6 +5,19 @@ local exe = platform.OS == 'Windows' and ".exe" or ""
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"
+end
+
+if lm.platform == "win32-ia32" then
+ lm.target = "x86"
+else
+ lm.target = "x86_64"
+end
+
lm:import "3rd/bee.lua/make.lua"
lm:source_set 'lpeglabel' {