aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-05-23 14:40:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-05-23 14:40:07 +0200
commit0b672184ef920d2581a0be43d27c25690ee0569d (patch)
tree12fa12ca2899c3dddfb2c996dce76d4d2aa21867 /libbuild2/install
parent73a9ca5ad8925511354ce294e7b061e0262a1f98 (diff)
Cache build.host value in context
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx
index 1411143..6458a54 100644
--- a/libbuild2/install/rule.cxx
+++ b/libbuild2/install/rule.cxx
@@ -811,7 +811,7 @@ namespace build2
cstrings args;
string reld (
- cast<string> (ctx.global_scope["build.host.class"]) == "windows"
+ ctx.build_host->class_ == "windows"
? msys_path (chd)
: relative (chd).string ());
@@ -857,7 +857,7 @@ namespace build2
dir_path chd (chroot_path (rs, base.dir));
string reld (
- cast<string> (ctx.global_scope["build.host.class"]) == "windows"
+ ctx.build_host->class_ == "windows"
? msys_path (chd)
: relative (chd).string ());