Commit 5f62ab9c authored by Joel E. Denny's avatar Joel E. Denny
Browse files

[Clacc][OpenMP] Fix installation of libomptarget plugins

56ca700a accidentally removed installation of libomptarget's
generic-elf-64bit plugins (e.g., x86_64 and ppc64le) into the install
directory's top-level lib subdirectory.  As a result, when attempting
to offload to those architectures, the runtime either quietly disabled
offloading or found a (likely incompatible) version of those plugins
in, for example, a system library directory.  As a result, the runtime
sometimes misbehaved, possibly failing.  This patch restores the
proper installation.  Offloading to nvptx64 was not affected by this
bug.
parent 4ed3a4c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "${tmachine}$")
      endif()

      # Install plugin under the lib destination folder.
      install(TARGETS "omptarget.rtl.${tmachine_libname}"
        LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
      if(OPENMP_CLANG_LIB_SUBDIR)
        install(TARGETS "omptarget.rtl.${tmachine_libname}"
          LIBRARY DESTINATION