We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0996a commit 858838aCopy full SHA for 858838a
xmake/modules/core/tools/ldc2.lua
@@ -48,6 +48,16 @@ function nf_optimize(self, level)
48
return maps[level]
49
end
50
51
+-- make the linkdir flag
52
+-- ldc2 on windows uses msvc link.exe which requires /libpath: (not -libpath:)
53
+function nf_linkdir(self, dir)
54
+ if self:is_plat("windows") then
55
+ return {"-L/libpath:" .. dir}
56
+ else
57
+ return {"-L-L" .. dir}
58
+ end
59
+end
60
+
61
-- make the symbol flag
62
function nf_symbol(self, level)
63
local kind = self:kind()
0 commit comments