From 2671496db7c3996a6d8467360979f3085375c6df Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 10 Oct 2019 23:13:46 +0300 Subject: Implement MSVC installation discovery for version 15 (2017) and later In particular, this removes the requirement to build from the Visual Studio command prompt. Note that since MSVC compiler binaries are target-specific (i.e., there are no -m32/-m64 options nor something like /MACHINE), in this case we default to a 64-bit build (a 32-bit build can still be achieved by running from a suitable command prompt). Finally, this mechanism is also used to find Clang bundled with MSVC. --- libbuild2/utility.ixx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbuild2/utility.ixx') diff --git a/libbuild2/utility.ixx b/libbuild2/utility.ixx index 8d3f6ba..dcfd128 100644 --- a/libbuild2/utility.ixx +++ b/libbuild2/utility.ixx @@ -38,9 +38,9 @@ namespace build2 template inline void - hash_options (sha256& csum, T& s, const variable& var) + append_options (sha256& csum, T& s, const variable& var) { - hash_options (csum, s[var]); + append_options (csum, s[var]); } template @@ -59,9 +59,9 @@ namespace build2 template inline void - hash_options (sha256& csum, T& s, const char* var) + append_options (sha256& csum, T& s, const char* var) { - hash_options (csum, s[var]); + append_options (csum, s[var]); } inline void @@ -79,10 +79,10 @@ namespace build2 } inline void - hash_options (sha256& csum, const strings& sv) + append_options (sha256& csum, const strings& sv) { if (size_t n = sv.size ()) - hash_options (csum, sv, n); + append_options (csum, sv, n); } template -- cgit v1.1