Skip to content

Commit

Permalink
[cxxmodules] Fix failing master by using strcmp for const char*
Browse files Browse the repository at this point in the history
RooFit was not excluded because of this bug.
  • Loading branch information
yamaguchi1024 committed May 21, 2018
1 parent bc35da8 commit 121056b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,9 @@ extern "C" int TCling__AutoLoadLibraryForModules(const char* StemName)
// pcms from LinkDef files would fix this workaround.
static constexpr std::array<const char*, 4> excludelibs = { {"RooStats",
"RooFitCore", "RooFit", "HistFactory"} };
if (std::find(excludelibs.begin(), excludelibs.end(), StemName) != excludelibs.end())
return -1;
for (const char* exLibs : excludelibs)
if (strcmp(exLibs, StemName) == 0)
return -1;

// Add lib prefix
TString LibName("lib" + std::string(StemName));
Expand Down

0 comments on commit 121056b

Please sign in to comment.