aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Bachmeyer <jcb62281+dev@gmail.com>2020-05-25 09:08:11 -0600
committerRob Savoye <rob@senecass.com>2020-05-25 09:08:11 -0600
commit186b7fbb31dc1e5fe56ce5231aa2db3a5e5751bf (patch)
treebfeac2e236ef7bd0640d26a880ce7bbbfde8138d
parenta69ac800d4bf23ba5e48830a19dc227ec93f489e (diff)
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.
-rw-r--r--ChangeLog6
-rw-r--r--lib/target.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 093e8be..c92f6a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2020-05-20 Jacob Bachmeyer <jcb62281+dev@gmail.com>
+ * 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 <jcb62281+dev@gmail.com>
+
* doc/dejagnu.texi (Adding a new board): Document that the
"compiler" board_info field is optional and defaults to [find_gcc]
if not given.
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"