summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-07 16:52:46 +0800
committerruki <[email protected]>2015-06-07 16:53:46 +0800
commit6e928d29aa3e30b92b6ad5b51edc105ec90b39ad (patch)
tree6d281e0d421dfd65fc0958ec31ac58cf3f097e68 /xmake/scripts/platform/windows/tools/cl.lua
parentf254d7f88fbbb159593cdfbadffe98498b14870c (diff)
add ftrapv and address sanitizer
Diffstat (limited to 'xmake/scripts/platform/windows/tools/cl.lua')
-rw-r--r--xmake/scripts/platform/windows/tools/cl.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/scripts/platform/windows/tools/cl.lua b/xmake/scripts/platform/windows/tools/cl.lua
index 2a0833759..84b5b33ac 100644
--- a/xmake/scripts/platform/windows/tools/cl.lua
+++ b/xmake/scripts/platform/windows/tools/cl.lua
@@ -67,6 +67,10 @@ function cl.init(name)
-- language
, ["-ansi"] = ""
, ["-std=.*"] = ""
+
+ -- others
+ , ["-ftrapv"] = ""
+ , ["-fsanitize=address"] = ""
}
end