Use better test for usable compiler in ld testsuite.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-plugin / plugin.exp
index 8b0ea9c1e36041f5426f4dd233f967ffc0fa767e..ee193e93f1004b4a97c171a4c7e86ccac59e922a 100644 (file)
@@ -26,7 +26,7 @@ if ![check_plugin_api_available] {
 # And a compiler to be available.
 set can_compile 1
 set failure_kind "unresolved"
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
   # Don't fail immediately, 
   set can_compile 0
   set failure_kind "unsupported"
This page took 0.023828 seconds and 4 git commands to generate.