Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions xmake/modules/core/tools/ldc2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ function nf_optimize(self, level)
return maps[level]
end

-- make the linkdir flag
-- ldc2 on windows uses msvc link.exe which requires /libpath: (not -libpath:)
function nf_linkdir(self, dir)
if self:is_plat("windows") then
return {"-L/libpath:" .. dir}
else
return {"-L-L" .. dir}
end
end

-- make the symbol flag
function nf_symbol(self, level)
local kind = self:kind()
Expand Down
Loading