aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
parenta69ac800d4bf23ba5e48830a19dc227ec93f489e (diff)
downloaddejagnu-186b7fbb31dc1e5fe56ce5231aa2db3a5e5751bf.zip
dejagnu-186b7fbb31dc1e5fe56ce5231aa2db3a5e5751bf.tar.gz
dejagnu-186b7fbb31dc1e5fe56ce5231aa2db3a5e5751bf.tar.bz2
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/target.exp2
1 files changed, 1 insertions, 1 deletions
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"