summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-06 23:59:02 +0800
committerruki <[email protected]>2020-10-06 23:59:02 +0800
commit0e6d98d453674e52d676e80a3378e6e74b4250fa (patch)
tree8b229f400de2f4856d66a21fd31b1f4c7d21193f /xmake/modules/core/tools/cl.lua
parent17b71915bd116b542447a9243dd9210beff1ccab (diff)
add set_fpmodels
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index eddd61720..4be07f30b 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -113,6 +113,19 @@ function nf_symbol(self, level, target)
return flags
end
+-- make the fp-model flag
+function nf_fpmodel(self, level)
+ local maps =
+ {
+ precise = "-fp:precise" -- default
+ , fast = "-fp:fast"
+ , strict = "-fp:strict"
+ , except = "-fp:except"
+ , noexcept = "-fp:except-"
+ }
+ return maps[level]
+end
+
-- make the warning flag
function nf_warning(self, level)