summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-22 22:33:01 +0800
committerruki <[email protected]>2024-01-25 12:09:58 +0800
commit5d2f15a1004be7baaaeb08b2e196ad77c52f9647 (patch)
tree95e24fb92cf22cbbf20deb66b5a5cf68b8686ed4 /xmake/modules/core/tools/nvcc.lua
parentbda43e3e865e2336db2bdf2b66af9beb235da1df (diff)
improve clang runtime
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index e67dc0749..3d23c0998 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -172,7 +172,13 @@ end
-- make vs runtime flag
function nf_runtime(self, vs_runtime)
if self:is_plat("windows") and vs_runtime then
- return '-Xcompiler "-' .. vs_runtime .. '"'
+ local maps = {
+ MT = '-Xcompiler "-MT"',
+ MD = '-Xcompiler "-MD"',
+ MTd = '-Xcompiler "-MTd"',
+ MDd = '-Xcompiler "-MDd"'
+ }
+ return maps[vs_runtime]
end
end