mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-23 20:19:49 +00:00
Don't run C tests in ld testsuite unless we have a C compiler
Removing the [isnative] check requires that we test for a C compiler. * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests. * testsuite/ld-pie/pie.exp: Likewise. * testsuite/ld-plugin/lto.exp: Likewise.
This commit is contained in:
parent
052d038860
commit
4ce6ca2c78
@ -1,3 +1,9 @@
|
|||||||
|
2017-01-03 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
|
||||||
|
* testsuite/ld-pie/pie.exp: Likewise.
|
||||||
|
* testsuite/ld-plugin/lto.exp: Likewise.
|
||||||
|
|
||||||
2017-01-02 Alan Modra <amodra@gmail.com>
|
2017-01-02 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* Makefile.am (bootstrap): Delete rule.
|
* Makefile.am (bootstrap): Delete rule.
|
||||||
|
@ -221,6 +221,11 @@ if { [istarget *-*-*linux*]
|
|||||||
|
|
||||||
set LDFLAGS $old_ldflags
|
set LDFLAGS $old_ldflags
|
||||||
|
|
||||||
|
# Check to see if the C compiler works
|
||||||
|
if { [which $CC] == 0 } {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if [check_gc_sections_available] {
|
if [check_gc_sections_available] {
|
||||||
run_cc_link_tests {
|
run_cc_link_tests {
|
||||||
{"PR ld/13195" "-Wl,--gc-sections" ""
|
{"PR ld/13195" "-Wl,--gc-sections" ""
|
||||||
|
@ -25,6 +25,11 @@ if { ![istarget *-*-linux*]
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check to see if the C compiler works
|
||||||
|
if { [which $CC] == 0 } {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
# Check if -pie is supported or not.
|
# Check if -pie is supported or not.
|
||||||
send_log "$CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie"
|
send_log "$CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie"
|
||||||
catch "exec $CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output
|
catch "exec $CC -fpie -pie $srcdir/$subdir/pie.c -o tmpdir/pie" exec_output
|
||||||
|
@ -18,6 +18,11 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
||||||
# MA 02110-1301, USA.
|
# MA 02110-1301, USA.
|
||||||
|
|
||||||
|
# Check to see if the C compiler works
|
||||||
|
if { [which $CC] == 0 } {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
# These tests require plugin and LTO.
|
# These tests require plugin and LTO.
|
||||||
if { ![check_plugin_api_available]
|
if { ![check_plugin_api_available]
|
||||||
|| ![check_lto_available] } {
|
|| ![check_lto_available] } {
|
||||||
|
Loading…
Reference in New Issue
Block a user