summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/common.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-05 08:27:09 +0200
committerArthur LAURENT <[email protected]>2022-08-05 08:27:09 +0200
commita7e5b395286033c03d45b260713304ab04c7cc8a (patch)
tree6b8b406d69126198f7a800a0fb92e717301a7f0f /xmake/rules/c++/modules/modules_support/common.lua
parenta4f39242acb700b507c3fdd026e4fb77c4e13510 (diff)
Use common stl cache across targets
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/common.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/common.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua
index 1be3b5170..9c15cffbe 100644
--- a/xmake/rules/c++/modules/modules_support/common.lua
+++ b/xmake/rules/c++/modules/modules_support/common.lua
@@ -35,10 +35,7 @@ end
-- get stl modules cache directory
function stlmodules_cachedir(target)
- local stlcachedir = path.join(target:autogendir(), "stlmodules", "cache")
- if target:has_tool("cxx", "clang", "clangxx") then
- stlcachedir = path.join(config.buildir(), "stlmodules", "cache")
- end
+ local stlcachedir = path.join(config.buildir(), "stlmodules", "cache")
if not os.isdir(stlcachedir) then
os.mkdir(stlcachedir)
end