summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-15 23:21:30 +0800
committerruki <[email protected]>2020-08-15 23:21:30 +0800
commitc3cc59775b94e5a8b26a99d3da6b91009cf8c5a5 (patch)
treea8f354cb0ac510c0ebc159893ebaf2ccf1f34585
parentb12320f81e7badd3d181555fe094ab0f4015a3f2 (diff)
fix has_flags for msvc/link
-rw-r--r--xmake/modules/detect/tools/link/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/link/has_flags.lua b/xmake/modules/detect/tools/link/has_flags.lua
index 188d22976..09ae10c5a 100644
--- a/xmake/modules/detect/tools/link/has_flags.lua
+++ b/xmake/modules/detect/tools/link/has_flags.lua
@@ -93,7 +93,7 @@ function _check_try_running(flags, opt)
local binaryfile = os.tmpfile() .. ".exe"
local cl = find_tool("cl")
if cl then
- os.runv(cl.program, {"-c", "-nologo", "-Fo" .. objectfile, sourcefile}, {envs = envs})
+ os.runv(cl.program, {"-c", "-nologo", "-Fo" .. objectfile, sourcefile}, {envs = opt.envs})
end
-- try link it