summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-14 19:00:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-14 19:00:58 +0800
commite81973084dfeb9bcf99cc757e9671f8197f49ec1 (patch)
treede21f307d938727ae9e6acc0e10de131083a203e /make
parenta09eaea2183d23071ff4297ae9d9d5aee4b4bc8b (diff)
downloadlua-language-server-e81973084dfeb9bcf99cc757e9671f8197f49ec1.zip
update compile
Diffstat (limited to 'make')
-rw-r--r--make/code_format.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/make/code_format.lua b/make/code_format.lua
index b5b52d73..537aa273 100644
--- a/make/code_format.lua
+++ b/make/code_format.lua
@@ -1,5 +1,8 @@
local lm = require 'luamake'
+lm.c = lm.compiler == 'msvc' and 'c89' or 'c11'
+lm.cxx = 'c++17'
+
lm:source_set 'code_format' {
rootdir = '../3rd/EmmyLuaCodeStyle',
includes = {
@@ -31,6 +34,4 @@ lm:source_set 'code_format' {
end
end)()
},
- c = 'c89',
- cxx = 'c++17',
}