diff options
| author | ruki <[email protected]> | 2020-12-24 22:53:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-24 22:53:35 +0800 |
| commit | 5beced53d4ba81070c79a777ac5f5f0233e22e4e (patch) | |
| tree | b2c6aa0654e0e68a2a40dc2870928551539b9805 /xmake/modules/core/tools/link.lua | |
| parent | 381e3c74967cfab1c5d42e9ee7fcb68a5a1533f7 (diff) | |
add vs_runtime config and set_runtimes api
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index 844b5d67a..26abc8983 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -96,6 +96,13 @@ 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 + return "-nodefaultlib:msvcrt.lib" + end +end + -- make the linkdir flag function nf_linkdir(self, dir) return "-libpath:" .. os.args(path.translate(dir)) |
