summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-23 11:34:25 +0800
committerOpportunityLiu <[email protected]>2019-07-23 11:34:25 +0800
commit23e1f7cc177c5cc6e2fd12c627bd7d2bc86d72c2 (patch)
tree8c775b49dfa55a3f822d905de2944de18c7d2714 /xmake/modules/core/tools/gcc.lua
parent42f44fa0a7a7c44a2e4eab067ebf56364bfabc2f (diff)
improve check flags with file
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 1e4267be1..e029f8566 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -405,7 +405,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
-- support `-MMD -MF depfile.d`? some old gcc does not support it at same time
if depfile and _g._HAS_MMD_MF == nil then
- _g._HAS_MMD_MF = self:has_flags({"-MMD", "-MF", os.nuldev()}, "cxflags") or false
+ _g._HAS_MMD_MF = self:has_flags({"-MMD", "-MF", os.nuldev()}, "cxflags", { flagskey = "-MMD -MF" }) or false
end
-- generate includes file