diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 23:18:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 23:18:34 +0800 |
commit | d4bb6e30f9d02cc180a21d6645cd06d4e8645a00 (patch) | |
tree | 51123af083ecc21cd41af227c8efa12b94d2b4fe | |
parent | 75509a89ecc69c683c015a97c9844746c81e6057 (diff) | |
parent | eeeff6ad7f8c9fdb7425d88e7d4f8fecb6f81095 (diff) | |
download | lua-language-server-d4bb6e30f9d02cc180a21d6645cd06d4e8645a00.zip |
Merge pull request #1053 from CppCXY/master
子模块编译视作警告
m--------- | 3rd/EmmyLuaCodeStyle | 0 | ||||
-rw-r--r-- | make/code_format.lua | 15 |
2 files changed, 10 insertions, 5 deletions
diff --git a/3rd/EmmyLuaCodeStyle b/3rd/EmmyLuaCodeStyle -Subproject ab534c069ba4806fc4ef8b29005e07d651e40d4 +Subproject 8246ca187f166f9fa88c08076b4c1e16817de11 diff --git a/make/code_format.lua b/make/code_format.lua index 537aa273..6f5f120b 100644 --- a/make/code_format.lua +++ b/make/code_format.lua @@ -23,15 +23,20 @@ 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", + defines = "NOT_SUPPORT_FILE_SYSTEM" }, linux = { - defines = (function () + defines = (function() if lm.platform == "linux-arm64" then return "NOT_SUPPORT_FILE_SYSTEM" end - end)() - }, + end)(), + flags = "-Wall -Werror" + } } |