@@ -261,7 +261,7 @@ createClangInterpreter(std::vector<const char*>& args, int stdin_fd = -1,
261261 DeviceCI->LoadRequestedPlugins ();
262262
263263 bool outOfProcess;
264- #if defined(_WIN32)
264+ #if defined(_WIN32) || !defined(LLVM_BUILT_WITH_OOP_JIT)
265265 outOfProcess = false ;
266266#else
267267 outOfProcess = std::any_of (args.begin (), args.end (), [](const char * arg) {
@@ -275,7 +275,7 @@ createClangInterpreter(std::vector<const char*>& args, int stdin_fd = -1,
275275 if (outOfProcess) {
276276 OutOfProcessConfig.IsOutOfProcess = true ;
277277 OutOfProcessConfig.OOPExecutor =
278- LLVM_BUILD_LIB_DIR " /bin/llvm-jitlink-executor" ;
278+ LLVM_BINARY_LIB_DIR " /bin/llvm-jitlink-executor" ;
279279 OutOfProcessConfig.UseSharedMemory = false ;
280280 OutOfProcessConfig.SlabAllocateSize = 0 ;
281281 OutOfProcessConfig.CustomizeFork = [stdin_fd, stdout_fd,
@@ -289,10 +289,10 @@ createClangInterpreter(std::vector<const char*>& args, int stdin_fd = -1,
289289 };
290290
291291#ifdef __APPLE__
292- std::string OrcRuntimePath = LLVM_BUILD_LIB_DIR " /lib/clang/" STRINGIFY (
292+ std::string OrcRuntimePath = LLVM_BINARY_LIB_DIR " /lib/clang/" STRINGIFY (
293293 LLVM_VERSION_MAJOR) " /lib/darwin/liborc_rt_osx.a" ;
294294#else
295- std::string OrcRuntimePath = LLVM_BUILD_LIB_DIR " /lib/clang/" STRINGIFY (
295+ std::string OrcRuntimePath = LLVM_BINARY_LIB_DIR " /lib/clang/" STRINGIFY (
296296 LLVM_VERSION_MAJOR) " /lib/x86_64-unknown-linux-gnu/liborc_rt.a" ;
297297#endif
298298 OutOfProcessConfig.OrcRuntimePath = OrcRuntimePath;
0 commit comments