summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2022-04-14 22:41:57 +0800
committerCppCXY <812125110@qq.com>2022-04-14 22:41:57 +0800
commit30900bbcd5f8f6229c1ceb1621af377dcafa070a (patch)
tree4ec6ac4c380e7b033da49ad44aa94b1fd7b2caa7 /make
parent75509a89ecc69c683c015a97c9844746c81e6057 (diff)
downloadlua-language-server-30900bbcd5f8f6229c1ceb1621af377dcafa070a.zip
reset
Diffstat (limited to 'make')
-rw-r--r--make/code_format.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/make/code_format.lua b/make/code_format.lua
index 537aa273..c62fb0cc 100644
--- a/make/code_format.lua
+++ b/make/code_format.lua
@@ -23,15 +23,19 @@ lm:source_set 'code_format' {
"CodeService/src/FormatElement/*.cpp",
"CodeService/src/NameStyle/*.cpp"
},
+ windows = {
+ -- 不要开哦
+ -- flasg = "/W3 /WX"
+ },
macos = {
- -- macosx10.12不支持完整的std filesystem,只好砍功能
- defines = "NOT_SUPPORT_FILE_SYSTEM",
+ flags = "-Wall -Werror",
},
linux = {
- defines = (function ()
+ defines = (function()
if lm.platform == "linux-arm64" then
return "NOT_SUPPORT_FILE_SYSTEM"
end
- end)()
- },
+ end)(),
+ flags = "-Wall -Werror"
+ }
}