summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/clang_cl.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/clang_cl.lua b/xmake/modules/core/tools/clang_cl.lua
index 35c58edf3..53f98843b 100644
--- a/xmake/modules/core/tools/clang_cl.lua
+++ b/xmake/modules/core/tools/clang_cl.lua
@@ -151,8 +151,9 @@ function _has_clang_mmd(self)
if self:has_flags({"/clang:-MMD", "/clang:-MF", "/clang:" .. depfile}, "cxflags", {flagskey = "clang_mmd"}) then
has_clang_mmd = true
end
+ has_clang_mmd = has_clang_mmd or false
+ _g._HAS_CLANG_MMD = has_clang_mmd
os.tryrm(depfile)
- _g._HAS_CLANG_MMD = has_clang_mmd or false
end
return has_clang_mmd
end