diff options
| author | OpportunityLiu <[email protected]> | 2019-07-23 11:34:25 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-23 11:34:25 +0800 |
| commit | 23e1f7cc177c5cc6e2fd12c627bd7d2bc86d72c2 (patch) | |
| tree | 8c775b49dfa55a3f822d905de2944de18c7d2714 /xmake/modules/core/tools/nvcc.lua | |
| parent | 42f44fa0a7a7c44a2e4eab067ebf56364bfabc2f (diff) | |
improve check flags with file
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 9f92e0425..17ad802b6 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -80,7 +80,7 @@ function nf_symbol(self, level, target) -- check and add symbol output file host_flags = "-Zi -Fd" .. path.join(symboldir, "compile." .. path.filename(symbolfile)) - if self:has_flags({'-Xcompiler "-Zi -FS -Fd' .. os.tmpfile() .. '.pdb"'}, "cuflags") then + if self:has_flags({'-Xcompiler "-Zi -FS -Fd' .. os.nuldev() .. '.pdb"'}, "cuflags", { flagskey = '-Xcompiler "-Zi -FS -Fd"' }) then host_flags = "-FS " .. host_flags end else @@ -316,7 +316,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) function () -- support `-M -MF depfile.d`? if depfile and _g._HAS_M_MF == nil then - _g._HAS_M_MF = self:has_flags({"-M", "-MF", os.nuldev()}, "cuflags") or false + _g._HAS_M_MF = self:has_flags({"-M", "-MF", os.nuldev()}, "cuflags", { flagskey = "-M -MF" }) or false end -- generate includes file |
