summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-13 22:34:23 +0800
committerruki <[email protected]>2020-04-13 09:26:20 +0800
commit2aec1cfaa90e1f885410ff3c2eed4f70186c2eb2 (patch)
tree770d2538b71bafb584f8d980d04df2739e46dea4
parent165e8eadc5d170fef3a2a5861c61ac4099387fb3 (diff)
fix tools/xmake
-rw-r--r--xmake/modules/package/tools/xmake.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index b50f20a7e..787597358 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -33,11 +33,7 @@ function _get_configs(package, configs)
local vs_runtime = package:config("vs_runtime")
if vs_runtime then
local vs_runtime_cxflags = "/" .. vs_runtime .. (package:debug() and "d" or "")
- if cxflags then
- cxflags = cxflags .. " " .. vs_runtime_cxflags
- else
- cxflags = vs_runtime_cxflags
- end
+ table.insert(cxflags, vs_runtime_cxflags)
end
end
table.insert(configs, "--mode=" .. (package:debug() and "debug" or "release"))