2008-01-22 H.J. Lu <hongjiu.lu@intel.com>

* ld-gc/gc.exp: Use [which $CC] != 0.
This commit is contained in:
H.J. Lu 2008-01-22 19:36:58 +00:00
parent 6305a20382
commit d053948ad2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
* ld-gc/gc.exp: Use [which $CC] != 0.
2008-01-14 Tristan Gingold <gingold@adacore.com>
* ld-gc/gc.exp (test_gc): Let missing C compiler make tests

View File

@ -27,7 +27,7 @@ if ![check_gc_sections_available] {
set cflags "-ffunction-sections -fdata-sections"
set objfile "tmpdir/gc.o"
if { [is_remote host] || [which $CC] } {
if { [is_remote host] || [which $CC] != 0 } {
ld_compile "$CC -c $CFLAGS $cflags" $srcdir/$subdir/gc.c $objfile
}