Use better test for usable compiler in ld testsuite.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / shared.exp
index b5a01c9379bd6c22fe1830796857ec9b09c32ab1..f27fa2401d047153fdeb0841b7faf85536d5e533 100644 (file)
@@ -498,7 +498,7 @@ if { [istarget *-*-linux*]
 }
 
 # Check to see if the C compiler works
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
     return
 }
 
This page took 0.025325 seconds and 4 git commands to generate.