summaryrefslogtreecommitdiff
path: root/xmake/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-02 09:36:18 +0800
committerruki <[email protected]>2016-09-02 09:37:59 +0800
commite8097bc82c73a6e1724d104f6516f0abd4a6e36b (patch)
tree261ff81aa9d5301d2d113d83863fd781859dcfad /xmake/tools/link.lua
parenteb7401f0cf3d3039f3670c86ad05acbc7c042c39 (diff)
fix def flags for msvc
Diffstat (limited to 'xmake/tools/link.lua')
-rwxr-xr-xxmake/tools/link.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua
index cacbb3eab..a5f78b4f1 100755
--- a/xmake/tools/link.lua
+++ b/xmake/tools/link.lua
@@ -145,6 +145,11 @@ end
-- check the given flags
function check(flags)
+ -- -def:"xxx.def"? pass directly
+ if flags and flags:lower():find("def:") then
+ return
+ end
+
-- make an stub source file
local binaryfile = os.tmpfile() .. ".exe"
local objectfile = os.tmpfile() .. ".obj"