Skip to content
Closed
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: 5 additions & 1 deletion core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,11 @@ void TCling::RegisterModule(const char* modulename,

bool ModuleWasSuccessfullyLoaded = false;
if (hasCxxModule) {
std::string ModuleName = llvm::StringRef(modulename).substr(3).str();
std::string ModuleName = modulename;
// Remove lib from modulename if any
if (llvm::StringRef(modulename).startswith("lib"))
ModuleName = modulename + 3;

// FIXME: We should only complain for modules which we know to exist. For example, we should not complain about
// modules such as GenVector32 because it needs to fall back to GenVector.
ModuleWasSuccessfullyLoaded = LoadModule(ModuleName, *fInterpreter, /*Complain=*/ false);
Expand Down