From aecb5cbe755746baea1e0f3ec9c7a0cc0bdedd5b Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Nov 2017 22:48:19 +0800 Subject: fix os.nuldev on gcc/mingw --- xmake/modules/detect/tools/gcc/has_flags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/detect') 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)? -- cgit v1.3.1