aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-unique/unique.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-unique/unique.exp')
-rw-r--r--ld/testsuite/ld-unique/unique.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-unique/unique.exp b/ld/testsuite/ld-unique/unique.exp
index 2cda133..eb21108 100644
--- a/ld/testsuite/ld-unique/unique.exp
+++ b/ld/testsuite/ld-unique/unique.exp
@@ -44,7 +44,7 @@ foreach t $test_list {
# We need a working compiler. (Strictly speaking this is
# not true, we could use target specific assembler files).
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
verbose "UNIQUE compiled tests not run - no compiler available"
return
}