From 6084692e2bd4e0053cac7dc3f569738651ee9042 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Oct 2019 11:05:31 +0200 Subject: Extend /LIBPATH handling to win32-msvc target system --- libbuild2/cc/common.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/common.cxx') diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index 7d929a8..f14f973 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -970,6 +970,8 @@ namespace build2 // auto extract = [&bs, &r, this] (const value& val, const variable& var) { + bool msvc (tsys == "win32-msvc"); + const auto& v (cast (val)); for (auto i (v.begin ()), e (v.end ()); i != e; ++i) @@ -980,7 +982,7 @@ namespace build2 try { - if (cclass == compiler_class::msvc) + if (msvc) { // /LIBPATH: (case-insensitive). // -- cgit v1.1