summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform
diff options
context:
space:
mode:
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