diff options
author | sumneko <sumneko@hotmail.com> | 2021-12-15 01:16:35 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2021-12-15 01:16:35 +0800 |
commit | 75fe70f039778f2161802dd66f3002e1faca27b8 (patch) | |
tree | b6a6399fea75f12bc81796cc2d6b5bc0bc773dfe | |
parent | 74295a9fa0456256310269523ba84a785eec6d0a (diff) | |
download | lua-language-server-75fe70f039778f2161802dd66f3002e1faca27b8.zip |
handle `-platform` by `make.lua`
-rw-r--r-- | make.lua | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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' { |