From 186b7fbb31dc1e5fe56ce5231aa2db3a5e5751bf Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Mon, 25 May 2020 09:08:11 -0600 Subject: [PATCH] Use host_info procedure to probe for a host configuration, instead of checking a local empty target_info array due to lacking global target_info. --- ChangeLog | 6 ++++++ lib/target.exp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 093e8be..c92f6a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-05-20 Jacob Bachmeyer + + * lib/target.exp (default_target_compile): Use "host_info" + procedure to probe for a host configuration, instead of checking a + local empty target_info array due to lacking "global target_info". + 2020-05-20 Jacob Bachmeyer * doc/dejagnu.texi (Adding a new board): Document that the diff --git a/lib/target.exp b/lib/target.exp index 37c73c5..b52c853 100644 --- a/lib/target.exp +++ b/lib/target.exp @@ -326,7 +326,7 @@ proc default_target_compile {source destfile type options} { append ldflags " $LDFLAGS_FOR_TARGET" } - if {[info exists target_info(host,name)]} { + if {[host_info exists]} { set host [host_info name] } else { set host "unix"