From 0b672184ef920d2581a0be43d27c25690ee0569d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 May 2022 14:40:07 +0200 Subject: Cache build.host value in context --- libbuild2/install/rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/install/rule.cxx') 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 (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 (ctx.global_scope["build.host.class"]) == "windows" + ctx.build_host->class_ == "windows" ? msys_path (chd) : relative (chd).string ()); -- cgit v1.1