Skip to content

Commit e04d404

Browse files
committed
Add lookup option to LoadLibrary
1 parent 064ecec commit e04d404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/clang/Interpreter/InterOp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace InterOp {
160160

161161
const std::string LookupLibrary(TInterp_t interp, const char *lib_name);
162162

163-
bool LoadLibrary(TInterp_t interp, const char *lib_path);
163+
bool LoadLibrary(TInterp_t interp, const char *lib_path, bool lookup = true);
164164

165165
TCppScope_t InstantiateClassTemplate(TInterp_t interp, const char *tmpl_name);
166166

lib/Interpreter/InterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,10 +1876,10 @@ namespace InterOp {
18761876
return I->getDynamicLibraryManager()->lookupLibrary(lib_name);
18771877
}
18781878

1879-
bool LoadLibrary(TInterp_t interp, const char *lib_name) {
1879+
bool LoadLibrary(TInterp_t interp, const char *lib_name, bool lookup) {
18801880
auto* I = (cling::Interpreter*)interp;
18811881
cling::Interpreter::CompilationResult res =
1882-
I->loadLibrary(lib_name, /* lookup */ true);
1882+
I->loadLibrary(lib_name, lookup);
18831883

18841884
return res == cling::Interpreter::kSuccess;
18851885
}

0 commit comments

Comments
 (0)