Use better test for usable compiler in ld testsuite.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / dwarf.exp
index bc3cbb219b32c2cc2ac65ed386e7cdca8d6be4cf..233a2a87872b93acc7135b6bcd08b1931fc391bb 100644 (file)
@@ -36,7 +36,7 @@ if ![check_shared_lib_support] {
 }
 
 # Check if compiler works
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
     return
 }
 
This page took 0.024459 seconds and 4 git commands to generate.