diff --git a/3rd/EmmyLuaCodeStyle b/3rd/EmmyLuaCodeStyle index ab534c069..8246ca187 160000 --- a/3rd/EmmyLuaCodeStyle +++ b/3rd/EmmyLuaCodeStyle @@ -1 +1 @@ -Subproject commit ab534c069ba4806fc4ef8b29005e07d651e40d4f +Subproject commit 8246ca187f166f9fa88c08076b4c1e16817de116 diff --git a/make/code_format.lua b/make/code_format.lua index 537aa2738..6f5f120b8 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" + } }