summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools')
-rw-r--r--xmake/modules/core/tools/nvcc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 33c687695..454b6e934 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -166,6 +166,13 @@ function nf_optimize(self, level)
end
end
+-- make vs runtime flag
+function nf_runtime(self, vs_runtime)
+ if vs_runtime then
+ return (' -Xcompiler "-' .. vs_runtime .. '"'):trim()
+ end
+end
+
-- make the language flag
function nf_language(self, stdname)