Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/test/lit.cfg
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | else: # Unices | ||||
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory | config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory | ||||
config.test_flags += " -Wl,-rpath," + config.llvm_lib_directory | config.test_flags += " -Wl,-rpath," + config.llvm_lib_directory | ||||
if config.cuda_libdir: | if config.cuda_libdir: | ||||
config.test_flags += " -Wl,-rpath," + config.cuda_libdir | config.test_flags += " -Wl,-rpath," + config.cuda_libdir | ||||
if config.libomptarget_current_target.startswith('amdgcn'): | if config.libomptarget_current_target.startswith('amdgcn'): | ||||
config.test_flags += " --libomptarget-amdgcn-bc-path=" + config.library_dir | config.test_flags += " --libomptarget-amdgcn-bc-path=" + config.library_dir | ||||
if config.libomptarget_current_target.startswith('nvptx'): | if config.libomptarget_current_target.startswith('nvptx'): | ||||
config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir | config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir | ||||
if config.libomptarget_current_target.endswith('-oldDriver'): | |||||
config.test_flags += " -fno-openmp-new-driver" | |||||
if config.libomptarget_current_target.endswith('-LTO'): | if config.libomptarget_current_target.endswith('-LTO'): | ||||
config.test_flags += " -foffload-lto" | config.test_flags += " -foffload-lto" | ||||
def remove_suffix_if_present(name): | def remove_suffix_if_present(name): | ||||
if name.endswith('-oldDriver'): | |||||
return name[:-10] | |||||
if name.endswith('-LTO'): | if name.endswith('-LTO'): | ||||
return name[:-4] | return name[:-4] | ||||
else: | else: | ||||
return name | return name | ||||
# substitutions | # substitutions | ||||
# - for targets that exist in the system create the actual command. | # - for targets that exist in the system create the actual command. | ||||
# - for valid targets that do not exist in the system, return false, so that the | # - for valid targets that do not exist in the system, return false, so that the | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |