diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt --- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt +++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt @@ -18,7 +18,7 @@ # Only enable JIT for those targets that LLVM can support. string(TOUPPER "${LLVM_TARGETS_TO_BUILD}" TargetsSupported) foreach(Target ${TargetsSupported}) - target_compile_definitions(PluginInterface PRIVATE "LIBOMPTARGET_JIT_${TARGET}") + target_compile_definitions(PluginInterface PRIVATE "LIBOMPTARGET_JIT_${Target}") endforeach() # This is required when using LLVM libraries. diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp --- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp +++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp @@ -69,7 +69,7 @@ } #endif if (!JITTargetInitialized) { - FAILURE_MESSAGE("unsupported JIT target"); + FAILURE_MESSAGE("unsupported JIT target: %s\n", TT.str().c_str()); abort(); } diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h --- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h +++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h @@ -380,7 +380,7 @@ /// Get target architecture. virtual std::string getArch() const { - llvm_unreachable("device doesn't support JIT"); + return "unknown"; } /// Post processing after jit backend. The ownership of \p MB will be taken. @@ -540,7 +540,7 @@ /// Get the target triple of this plugin. virtual Triple::ArchType getTripleArch() const { - llvm_unreachable("target doesn't support jit"); + return Triple::ArchType::UnknownArch; } /// Allocate a structure using the internal allocator.