summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-11 14:51:52 +0800
committerruki <[email protected]>2017-07-11 14:51:52 +0800
commit410a36dad68dc1f0b2ac9c12d861af7ab8d0b1d6 (patch)
treee33e94caea84d3a170f6dd86c36ac2e4adbd6687 /xmake/core/tool/compiler.lua
parent03420ca44581f299a48935ca60af4824575cd9c1 (diff)
rename has_flag to has_flags
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index b3f58c512..d98ae5212 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -247,8 +247,8 @@ function compiler:compflags(opt)
-- remove repeat
flags = table.unique(flags)
- -- concat
- local flags_str = table.concat(flags, " "):trim()
+ -- make flags string
+ local flags_str = table.concat(flags, " "):trim():gsub("\"", "\\\"")
-- save flags
if key then