summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/link.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/link.lua
parentbda43e3e865e2336db2bdf2b66af9beb235da1df (diff)
improve clang runtime
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
-rw-r--r--xmake/modules/core/tools/link.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index 9c53c2e28..a144d515e 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -113,9 +113,9 @@ function nf_syslink(self, lib)
return nf_link(self, lib)
end
--- make vs runtime flag
-function nf_runtime(self, vs_runtime)
- if vs_runtime and vs_runtime:startswith("MT") then
+-- make the runtime flag
+function nf_runtime(self, runtime)
+ if runtime and runtime:startswith("MT") then
return "-nodefaultlib:msvcrt.lib"
end
end