aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/lib/libgomp.exp
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/testsuite/lib/libgomp.exp')
-rw-r--r--libgomp/testsuite/lib/libgomp.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
index 891f909..107a3c2 100644
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp
@@ -348,6 +348,11 @@ proc libgomp_check_effective_target_offload_target { target_name } {
return 0
}
+# Return 1 if compiling for any offload target.
+proc check_effective_target_offload_target_any { } {
+ return [libgomp_check_effective_target_offload_target ""]
+}
+
# Return 1 if compiling for offload target nvptx.
proc check_effective_target_offload_target_nvptx { } {
return [libgomp_check_effective_target_offload_target "nvptx"]