diff options
| author | ruki <[email protected]> | 2017-11-16 22:48:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-11-16 10:49:56 +0800 |
| commit | aecb5cbe755746baea1e0f3ec9c7a0cc0bdedd5b (patch) | |
| tree | 096b0d30f7ba64f3337b2081dad61d28a8e28540 /xmake/modules/detect | |
| parent | 0b97a1c0f52a1f9cf563bc1ec2fe41555ed173be (diff) | |
fix os.nuldev on gcc/mingw
Diffstat (limited to 'xmake/modules/detect')
| -rw-r--r-- | xmake/modules/detect/tools/gcc/has_flags.lua | 2 |
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)? |
