diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-07 12:49:09 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-07 12:49:50 -0500 |
commit | d3748d942aeee10fc7bcc7d469f5d0388222edff (patch) | |
tree | 549dd1b502d11574ee9725ac398e613b5ae1d287 /openmp | |
parent | 7a98f084c4d121244ef7286bc6503b6a181d446e (diff) | |
download | llvm-d3748d942aeee10fc7bcc7d469f5d0388222edff.zip llvm-d3748d942aeee10fc7bcc7d469f5d0388222edff.tar.gz llvm-d3748d942aeee10fc7bcc7d469f5d0388222edff.tar.bz2 |
[Libomptarget] Fix test logic for optionally adding the libcgpu.a
Summary:
This was not operating as expected and was causing the build to fail on
non-configured systems.
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/test/lit.cfg | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg index 4dabca4..2bb48b1 100644 --- a/openmp/libomptarget/test/lit.cfg +++ b/openmp/libomptarget/test/lit.cfg @@ -216,12 +216,12 @@ for libomptarget_target in config.libomptarget_all_targets: "%libomptarget-run-" + libomptarget_target)) config.substitutions.append(("%libomptarget-compilexx-" + \ libomptarget_target, \ - "%clangxx-" + libomptarget_target + " %s -o %t" \ - " -lcgpu" if config.libomptarget_has_libc else "")) + "%clangxx-" + libomptarget_target + " %s -o %t" + \ + (" -lcgpu" if config.libomptarget_has_libc else ""))) config.substitutions.append(("%libomptarget-compile-" + \ libomptarget_target, \ - "%clang-" + libomptarget_target + " %s -o %t" - " -lcgpu" if config.libomptarget_has_libc else "")) + "%clang-" + libomptarget_target + " %s -o %t" + + (" -lcgpu" if config.libomptarget_has_libc else ""))) config.substitutions.append(("%libomptarget-compileoptxx-run-and-check-" + \ libomptarget_target, \ "%libomptarget-compileoptxx-and-run-" + libomptarget_target + \ @@ -240,12 +240,12 @@ for libomptarget_target in config.libomptarget_all_targets: "%libomptarget-run-" + libomptarget_target)) config.substitutions.append(("%libomptarget-compileoptxx-" + \ libomptarget_target, \ - "%clangxx-" + libomptarget_target + " -O3 %s -o %t" - " -lcgpu" if config.libomptarget_has_libc else "")) + "%clangxx-" + libomptarget_target + " -O3 %s -o %t" + + (" -lcgpu" if config.libomptarget_has_libc else ""))) config.substitutions.append(("%libomptarget-compileopt-" + \ libomptarget_target, \ - "%clang-" + libomptarget_target + " -O3 %s -o %t" - " -lcgpu" if config.libomptarget_has_libc else "")) + "%clang-" + libomptarget_target + " -O3 %s -o %t" + + (" -lcgpu" if config.libomptarget_has_libc else ""))) config.substitutions.append(("%libomptarget-run-" + \ libomptarget_target, \ "%t")) |