Skip to content

Commit

Permalink
[Libomptarget] Fix test logic for optionally adding the libcgpu.a
Browse files Browse the repository at this point in the history
Summary:
This was not operating as expected and was causing the build to fail on
non-configured systems.
  • Loading branch information
jhuber6 committed Jul 7, 2023
1 parent 7a98f08 commit d3748d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openmp/libomptarget/test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 + \
Expand All @@ -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"))
Expand Down

0 comments on commit d3748d9

Please sign in to comment.