diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg index 3f64de4d78c9..88b20e967fc1 100644 --- a/openmp/libomptarget/test/lit.cfg +++ b/openmp/libomptarget/test/lit.cfg @@ -35,11 +35,11 @@ config.test_cflags = config.test_openmp_flag + \ " -I " + config.test_source_root + \ " -I " + config.omp_header_directory + \ " -L " + config.library_dir; - + if config.omp_host_rtl_directory: config.test_cflags = config.test_cflags + " -L " + \ - config.omp_host_rtl_directory - + config.omp_host_rtl_directory + config.test_cflags = config.test_cflags + " " + config.test_extra_cflags # Setup environment to find dynamic library at runtime @@ -56,7 +56,7 @@ else: # Unices append_dynamic_library_path('LD_LIBRARY_PATH', config.library_dir, ":") append_dynamic_library_path('LD_LIBRARY_PATH', \ config.omp_host_rtl_directory, ":") - + # substitutions # - 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 @@ -74,17 +74,17 @@ for libomptarget_target in config.libomptarget_all_targets: config.substitutions.append(("%libomptarget-compile-run-and-check-" + \ libomptarget_target, \ "%libomptarget-compile-and-run-" + libomptarget_target + \ - " | " + config.libomptarget_filecheck + " %s")) + " | " + config.libomptarget_filecheck + " %s")) config.substitutions.append(("%libomptarget-compilexx-and-run-" + \ libomptarget_target, \ "%clangxx-" + libomptarget_target + " %s -o %t-" + \ - libomptarget_target + " && %t-" + libomptarget_target)) + libomptarget_target + " && %t-" + libomptarget_target)) config.substitutions.append(("%libomptarget-compile-and-run-" + \ libomptarget_target, \ "%clang-" + libomptarget_target + " %s -o %t-" + \ libomptarget_target + " && %t-" + libomptarget_target)) config.substitutions.append(("%clangxx-" + libomptarget_target, \ - "%clangxx %cflags -fopenmp-targets=" + libomptarget_target)) + "%clangxx %cflags -fopenmp-targets=" + libomptarget_target)) config.substitutions.append(("%clang-" + libomptarget_target, \ "%clang %cflags -fopenmp-targets=" + libomptarget_target)) config.substitutions.append(("%fcheck-" + libomptarget_target, \ @@ -113,4 +113,3 @@ config.substitutions.append(("%clangxx", config.test_cxx_compiler)) config.substitutions.append(("%clang", config.test_c_compiler)) config.substitutions.append(("%openmp_flag", config.test_openmp_flag)) config.substitutions.append(("%cflags", config.test_cflags)) -