Skip to content

Commit f5eed82

Browse files
committed
[cxxmodules] Module cache should point to the library dir.
1 parent 7854e3d commit f5eed82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/metacling/src/TCling.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,12 @@ TCling::TCling(const char *name, const char *title)
12081208
// to rootcling to set this flag depending on whether it wants to produce
12091209
// C++ modules.
12101210
TString vfsArg;
1211+
TString moduleCachePathArg;
12111212
if (useCxxModules && !fromRootCling) {
12121213
// We only set this flag, rest is done by the CIFactory.
12131214
interpArgs.push_back("-fmodules");
1215+
moduleCachePathArg = "-fmodules-cache-path=" + TROOT::GetLibDir();
1216+
interpArgs.push_back(moduleCachePathArg.Data());
12141217
// We should never build modules during runtime, so let's enable the
12151218
// module build remarks from clang to make it easier to spot when we do
12161219
// this by accident.

0 commit comments

Comments
 (0)