summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-15 08:48:55 +0800
committerruki <[email protected]>2015-06-15 08:48:55 +0800
commit31bba0ba7852b0699e41642815455afb62ddc8b7 (patch)
tree214944d863b5dfd9b55e7eaba1a755d82c27f5a5 /xmake/scripts/platform
parent7693b33a4e39c66fa52af65c57c6f0ddaaf56bca (diff)
support multi-languages and fix macro defines
Diffstat (limited to 'xmake/scripts/platform')
-rw-r--r--xmake/scripts/platform/windows/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/platform/windows/tools/cl.lua b/xmake/scripts/platform/windows/tools/cl.lua
index 5ede4a0b0..6a1b2fa37 100644
--- a/xmake/scripts/platform/windows/tools/cl.lua
+++ b/xmake/scripts/platform/windows/tools/cl.lua
@@ -90,7 +90,7 @@ end
function cl.flag_define(self, define)
-- make it
- return "-D" .. define
+ return "-D" .. define:gsub("\"", "\\\"")
end
-- make the undefine flag