summaryrefslogtreecommitdiff
path: root/libgomp/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-xlibgomp/configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgomp/configure b/libgomp/configure
index d34a350e048..f643bf8f670 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -15434,7 +15434,10 @@ rm -f core conftest.err conftest.$ac_objext \
else
offload_targets=$offload_targets,$tgt_name
fi
- if test x"$tgt_dir" != x; then
+ if test "$tgt_name" = hsa; then
+ # Offloading compilation is all handled by the target compiler.
+ :
+ elif test x"$tgt_dir" != x; then
offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
else