diff --git a/openmp/libomptarget/src/omptarget.cpp b/openmp/libomptarget/src/omptarget.cpp --- a/openmp/libomptarget/src/omptarget.cpp +++ b/openmp/libomptarget/src/omptarget.cpp @@ -265,6 +265,13 @@ FAILURE_MESSAGE("Consult https://openmp.llvm.org/design/Runtimes.html " "for debugging options.\n"); + if (PM->RTLs.UsedRTLs.empty()) { + FAILURE_MESSAGE("None of the images found are compatible: "); + for (auto &[Image, Info] : PM->Images) + fprintf(stderr, "%s ", Info.Arch); + fprintf(stderr, "\n"); + } + SourceInfo Info(Loc); if (Info.isAvailible()) fprintf(stderr, "%s:%d:%d: ", Info.getFilename(), Info.getLine(),