summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-02 00:46:40 +0800
committerruki <[email protected]>2022-11-02 00:46:40 +0800
commitaccbf055ab1e80233696f2a69c6e7c1e4b10cca5 (patch)
tree4ed23aee33ddc6227d318cabd5e462305b06b754 /xmake/modules/core/tools/gcc.lua
parenta9a1788edab12cd63931278ce8d0e4ed02f5046d (diff)
optimize to parse deps
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 3a916ac9a..a3888ac34 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -606,7 +606,7 @@ end
-- get modules cache directory
function _modules_cachedir(target)
- if target and target.autogendir then -- we need ignore option instance
+ if target and target.autogendir and target:data("cxx.has_modules") then -- we need ignore option instance
return path.join(target:autogendir(), "rules", "modules", "cache")
end
end