diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/tools/nvcc/has_flags.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/detect/tools/nvcc/has_flags.lua b/xmake/modules/detect/tools/nvcc/has_flags.lua index a6f073a32..192402fd8 100644 --- a/xmake/modules/detect/tools/nvcc/has_flags.lua +++ b/xmake/modules/detect/tools/nvcc/has_flags.lua @@ -113,11 +113,10 @@ function _check_try_running(flags, opt, islinker) end -- check flags - local objectfile = is_plat("windows") and sourcefile .. ".o" or os.nuldev() if islinker then - return _try_running(opt.program, table.join(flags, "-o", objectfile, sourcefile)) + return _try_running(opt.program, table.join(flags, "-o", os.nuldev(), sourcefile)) else - return _try_running(opt.program, table.join(flags, "-c", "-o", objectfile, sourcefile)) + return _try_running(opt.program, table.join(flags, "-c", "-o", os.nuldev(), sourcefile)) end end |
