diff options
| author | ruki <[email protected]> | 2021-05-15 22:32:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-15 22:32:20 +0800 |
| commit | 6f975893c3513fcf1f7fc22ec105f7131bacad29 (patch) | |
| tree | 7b457db97ae6136656fc63e690809e8624e95b6e | |
| parent | 17373ff1f914da470d3c0f6c3bbc30e32d5e666a (diff) | |
improve nvcc
| -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 ec52c63e1..f4df5c866 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -277,7 +277,7 @@ end -- support `-MMD -MF depfile.d`? some old gcc does not support it at same time function _has_flags_mmd_mf(self) local has_mmd_mf = _g._HAS_MMD_MF - if has_mmd_mf == nil then + if has_mmd_mf == nil and not is_host("windows") then has_mmd_mf = self:has_flags({"-MMD", "-MF", os.nuldev()}, "cuflags", { flagskey = "-MMD -MF" }) or false _g._HAS_MMD_MF = has_mmd_mf end @@ -287,7 +287,7 @@ end -- support `-MM -o depfile.d`? function _has_flags_mm(self) local has_mm = _g._HAS_MM - if not has_mmd_mf and has_mm == nil then + if not has_mmd_mf and has_mm == nil and not is_host("windows") then has_mm = self:has_flags("-MM", "cuflags", { flagskey = "-MM" }) or false _g._HAS_MM = has_mm end |
