diff options
| author | as564335sa <[email protected]> | 2022-08-20 16:06:11 +0800 |
|---|---|---|
| committer | as564335sa <[email protected]> | 2022-08-20 16:06:11 +0800 |
| commit | 50e0bd4261d85413348477ffc2bc1265d7e59354 (patch) | |
| tree | d47d059fa7d5f9bfeba2e5e011e701fc80f6b865 /xmake/modules/core/tools/armcc.lua | |
| parent | 2f783b7419446a274537aebdf522754f154bde6d (diff) | |
fix
Diffstat (limited to 'xmake/modules/core/tools/armcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/armcc.lua | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/xmake/modules/core/tools/armcc.lua b/xmake/modules/core/tools/armcc.lua index d9f504eea..9121e3a04 100644 --- a/xmake/modules/core/tools/armcc.lua +++ b/xmake/modules/core/tools/armcc.lua @@ -135,17 +135,12 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) try { function () - -- support '--depend',I don't know how to get it,it is not implemented - -- if depfile and _g._HAS_MMD_MF == nil then - -- _g._HAS_MMD_MF = self:has_flags({"--depend", os.nuldev()}, "cxflags", { flagskey = "--depend" }) or false - -- end - _g._HAS_MMD_MF = true - -- -- generate includes file + local compflags = flags - if depfile and _g._HAS_MMD_MF then + if depfile then compflags = table.join(compflags, "--depend", depfile) end - local outdata, errdata = os.iorunv(compargv(self, sourcefile, objectfile, flags)) + local outdata, errdata = os.iorunv(compargv(self, sourcefile, objectfile, compflags)) return (outdata or "") .. (errdata or "") end, catch |
