Fix regression in #pragma cling add_library_path().
This regression was introduced by root-project/root@561e905b where we stopped iterating, on every lookup, over the -L paths passed at start up. This patch adds the path to the search paths of the DynamicLibraryManager rather than to the invocation options.
This commit is contained in:
parent
d1c279a075
commit
03e02c57bb
@ -9,6 +9,7 @@
|
||||
|
||||
#include "ClingPragmas.h"
|
||||
|
||||
#include "cling/Interpreter/DynamicLibraryManager.h"
|
||||
#include "cling/Interpreter/Interpreter.h"
|
||||
#include "cling/Interpreter/Transaction.h"
|
||||
#include "cling/Utils/Output.h"
|
||||
@ -253,7 +254,7 @@ namespace {
|
||||
default:
|
||||
do {
|
||||
if (Command == kAddLibrary)
|
||||
m_Interp.getOptions().LibSearchPath.push_back(std::move(Literal));
|
||||
m_Interp.getDynamicLibraryManager()->addSearchPath(std::move(Literal));
|
||||
else if (Command == kAddInclude)
|
||||
m_Interp.AddIncludePath(Literal);
|
||||
} while (GetNextLiteral(PP, Tok, Literal, Command));
|
||||
|
Loading…
x
Reference in New Issue
Block a user