Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,6 @@ TCling::TCling(const char *name, const char *title, const char* const argv[])
#ifdef R__USE_CXXMODULES
useCxxModules = true;
#endif
if (useCxxModules)
fHeaderParsingOnDemand = false;

llvm::install_fatal_error_handler(&exceptionErrorHandler);

Expand Down Expand Up @@ -1755,6 +1753,10 @@ void TCling::RegisterModule(const char* modulename,
// I/O; see rootcling.cxx after the call to TCling__GetInterpreter().
if (fromRootCling) return;

// When we cannot provide a module for the library we should enable header
// parsing. This 'mixed' mode ensures gradual migration to modules.
fHeaderParsingOnDemand = !hasCxxModule;

// Treat Aclic Libs in a special way. Do not delay the parsing.
bool hasHeaderParsingOnDemand = fHeaderParsingOnDemand;
bool isACLiC = strstr(modulename, "_ACLiC_dict") != nullptr;
Expand Down