summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2022-04-07 11:04:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 16:45:48 +0800
commit18e8e2f261a78f1281387f9d5108c2c066e585be (patch)
tree30e6679450e7d7febe7964de7dc3b4553f432b2d
parent9c51d20d0ac570e65920e030e78dd7d1759ecae3 (diff)
downloadlua-language-server-18e8e2f261a78f1281387f9d5108c2c066e585be.zip
提交修改
-rw-r--r--make.lua5
-rw-r--r--make/code_format.lua9
2 files changed, 9 insertions, 5 deletions
diff --git a/make.lua b/make.lua
index 7b939b8d..6a74809c 100644
--- a/make.lua
+++ b/make.lua
@@ -32,16 +32,13 @@ elseif platform.OS == 'Linux' then
elseif lm.platform == "linux-x64" then
elseif lm.platform == "linux-arm64" then
lm.cc = 'aarch64-linux-gnu-gcc'
- includeCodeFormat = false
else
error "unknown platform"
end
end
lm:import "3rd/bee.lua/make.lua"
-if includeCodeFormat then
- lm:import "make/code_format.lua"
-end
+lm:import "make/code_format.lua"
lm:source_set 'lpeglabel' {
rootdir = '3rd',
diff --git a/make/code_format.lua b/make/code_format.lua
index 17007fdd..48e4c80f 100644
--- a/make/code_format.lua
+++ b/make/code_format.lua
@@ -22,6 +22,13 @@ lm:source_set 'code_format' {
},
macos = {
-- macosx10.12不支持完整的std filesystem,只好砍功能
- defines = "NOT_SURPPORT_FILE_SYSTEM",
+ defines = "NOT_SUPPORT_FILE_SYSTEM",
},
+ linux = {
+ defines = (function ()
+ if lm.platform == "linux-arm64" then
+ return "NOT_SUPPORT_FILE_SYSTEM"
+ end
+ end)()
+ }
}