Skip to content

Commit 5f77a23

Browse files
1 parent 6f37a77 commit 5f77a23

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/xinterpreter.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,7 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
6868
)
6969
!= ClangArgs.end())
7070
{
71-
if (Cpp::LoadLibrary("libomp"))
72-
{
73-
return res;
74-
}
75-
std::string conda_prefix = std::getenv("CONDA_PREFIX");
76-
#if __APPLE__
77-
#define LIBRARY_PREFIX ".dylib"
78-
#else
79-
#define LIBRARY_PREFIX ".so"
80-
#endif
81-
std::string omp_lib_path = conda_prefix + "/lib/libomp" LIBRARY_PREFIX;
82-
if (!Cpp::LoadLibrary(omp_lib_path.c_str()))
83-
{
84-
std::cerr << "Failed to load libomp (tried location: " << omp_lib_path << ")\n";
85-
}
71+
Cpp::LoadLibrary("libomp");
8672
}
8773
return res;
8874
}

0 commit comments

Comments
 (0)