summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-22 17:55:46 +0800
committerOpportunityLiu <[email protected]>2019-07-22 17:56:04 +0800
commit1cf79ba882fb24eca13829c12f6e39584ccd1f5f (patch)
tree7e86499f2f2884e6db05d51c8442187160f6efb1 /xmake/modules/detect
parent4fafbae0430e7f9b4a85d280d6fb0efbd2cf35b5 (diff)
fix bug when parapllel checking flags
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/tools/nvcc/has_flags.lua5
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