@@ -526,7 +526,7 @@ def _configure_final_build(self):
526526 if self .cfg ['build_openmp_offload' ]:
527527 # Force dlopen of the GPU libraries at runtime, not using existing libraries
528528 if LooseVersion (self .version ) >= '19' :
529- self .runtimes_cmake_args ['LIBOMPTARGET_PLUGINS_TO_BUILD' ] = '%s' % '|' . join (self .offload_targets )
529+ self ._cmakeopts ['LIBOMPTARGET_PLUGINS_TO_BUILD' ] = self . list_to_cmake_arg (self .offload_targets )
530530 dlopen_plugins = set (self .offload_targets ) & set (AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS )
531531 if dlopen_plugins :
532532 self ._cmakeopts ['LIBOMPTARGET_DLOPEN_PLUGINS' ] = self .list_to_cmake_arg (dlopen_plugins )
@@ -1457,18 +1457,17 @@ def sanity_check_step(self, custom_paths=None, custom_commands=None, *args, **kw
14571457 omp_lib_files += [f'libomptarget-amdgpu-{ gfx } .bc' for gfx in self .amd_gfx ]
14581458 else :
14591459 omp_lib_files += ['libomptarget-amdgpu.bc' ]
1460-
1461- if version < '19' :
1462- # Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1463- check_lib_files += omp_lib_files
1460+ check_bin_files += ['llvm-omp-kernel-replay' ]
1461+ if version < '20' :
1462+ check_bin_files += ['llvm-omp-device-info' ]
14641463 else :
1465- # Starting from LLVM 19, omp related libraries are installed the runtime library directory
1466- check_librt_files += omp_lib_files
1467- check_bin_files += [ 'llvm-omp-kernel-replay' ]
1468- if version < '20' :
1469- check_bin_files += [ 'llvm-omp-device-info' ]
1470- else :
1471- check_bin_files += [ 'llvm-offload-device-info' ]
1464+ check_bin_files += [ 'llvm-offload-device-info' ]
1465+ if version < '19' :
1466+ # Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1467+ check_lib_files += omp_lib_files
1468+ else :
1469+ # Starting from LLVM 19, omp related libraries are installed the runtime library directory
1470+ check_librt_files += omp_lib_files
14721471
14731472 if self .cfg ['build_openmp_tools' ]:
14741473 check_files += [os .path .join ('lib' , 'clang' , resdir_version , 'include' , 'ompt.h' )]
0 commit comments