diff options
| author | ruki <[email protected]> | 2021-10-12 00:51:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-12 00:51:20 +0800 |
| commit | 09367e816155b80499ee5965ef686b55df54a590 (patch) | |
| tree | ecaefb6dee0967f667d40d9f302e6ed37b5ce652 /xmake/rules/c++/modules/build_modulefiles.lua | |
| parent | 1cb2cb91f9ae2c251b2f1ba1870874570e11516f (diff) | |
add module cache for clang
Diffstat (limited to 'xmake/rules/c++/modules/build_modulefiles.lua')
| -rw-r--r-- | xmake/rules/c++/modules/build_modulefiles.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/build_modulefiles.lua b/xmake/rules/c++/modules/build_modulefiles.lua index aa61fc696..430c4397f 100644 --- a/xmake/rules/c++/modules/build_modulefiles.lua +++ b/xmake/rules/c++/modules/build_modulefiles.lua @@ -52,7 +52,7 @@ function _build_modulefiles_clang(target, sourcebatch, opt) sourcebatch.dependfiles[idx] = target:dependfile(objectfile) table.insert(modulefiles, modulefile) end - opt.configs = {cxxflags = {opt.modulesflag}} + opt.configs = {cxxflags = {opt.modulesflag, "-fmodules-cache-path=" .. cachedir}} opt.quiet = true import("private.action.build.object").build(target, sourcebatch, opt) |
