]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-plugin/lto.exp
Use better test for usable compiler in ld testsuite.
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-plugin / lto.exp
index d097f063236767d9c84aa41a3ebf4633cbcd6392..3449a076ab91b84222d6506ef76abfda4626d1df 100644 (file)
@@ -19,7 +19,7 @@
 # MA 02110-1301, USA.
 
 # Check to see if the C and C++ compilers work
-if { [which $CC] == 0 || [which $CXX] == 0 } {
+if { ![check_compiler_available] || [which $CXX] == 0 } {
     return
 }