summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2017-11-16 22:48:19 +0800
committerruki <[email protected]>2017-11-16 10:49:56 +0800
commitaecb5cbe755746baea1e0f3ec9c7a0cc0bdedd5b (patch)
tree096b0d30f7ba64f3337b2081dad61d28a8e28540 /xmake/modules/detect/tools
parent0b97a1c0f52a1f9cf563bc1ec2fe41555ed173be (diff)
fix os.nuldev on gcc/mingw
Diffstat (limited to 'xmake/modules/detect/tools')
-rw-r--r--xmake/modules/detect/tools/gcc/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/gcc/has_flags.lua b/xmake/modules/detect/tools/gcc/has_flags.lua
index aa02557e8..fc7a8d2a6 100644
--- a/xmake/modules/detect/tools/gcc/has_flags.lua
+++ b/xmake/modules/detect/tools/gcc/has_flags.lua
@@ -105,7 +105,7 @@ function _check_try_running(flags, opt, islinker)
end
-- check flags for compiler
- return try { function () os.runv(opt.program, table.join(flags, "-S", "-o", os.nuldev(), "-x" .. lang, os.nuldev())); return true end }
+ return try { function () os.runv(opt.program, table.join(flags, "-S", "-o", os.nuldev(), "-x" .. lang, os.nuldev(true))); return true end }
end
-- has_flags(flags)?