diff options
| -rw-r--r-- | xmake/modules/core/tools/ldc2.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/ldc2.lua b/xmake/modules/core/tools/ldc2.lua index fa2e210a0..93215f940 100644 --- a/xmake/modules/core/tools/ldc2.lua +++ b/xmake/modules/core/tools/ldc2.lua @@ -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() |
