summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-22 22:44:21 +0800
committerruki <[email protected]>2023-08-22 22:44:21 +0800
commit3c0ac34865cf072bace5b339717a953bee690b83 (patch)
treec68934e93b5afbc434dfd693054308aa2fc3381c
parent643dfd476d7a50ac10c0fc6e794cb263c88b2277 (diff)
fix stlmodules cache dir #4091
-rw-r--r--xmake/rules/c++/modules/modules_support/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua
index 95cdc1626..2ff24023b 100644
--- a/xmake/rules/c++/modules/modules_support/common.lua
+++ b/xmake/rules/c++/modules/modules_support/common.lua
@@ -44,7 +44,7 @@ end
-- get stl modules cache directory
function stlmodules_cachedir(target, opt)
opt = opt or {}
- local stlcachedir = path.join(config.buildir(), "stlmodules", "cache", config.mode() or "release")
+ local stlcachedir = path.join(config.buildir(), "stlmodules", "cache", target:arch(), config.mode() or "release")
if opt.mkdir and not os.isdir(stlcachedir) then
os.mkdir(stlcachedir)
os.mkdir(path.join(stlcachedir, "experimental"))