From 71d9aedda0919fb22e39d6e6ce60506ceb69812e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 May 2017 11:32:01 +0200 Subject: Add compiler_id enum --- build2/cc/common.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/cc/common.cxx') diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx index 59feb9b..1df84c9 100644 --- a/build2/cc/common.cxx +++ b/build2/cc/common.cxx @@ -515,7 +515,7 @@ namespace build2 // const char* e (""); - if (cid == "msvc") + if (cid == compiler_id::msvc) { an = path (name); e = "lib"; @@ -543,7 +543,7 @@ namespace build2 { const char* e (""); - if (cid == "msvc") + if (cid == compiler_id::msvc) { sn = path (name); e = "dll.lib"; @@ -661,7 +661,7 @@ namespace build2 // // If we didn't find .dll.lib then we cannot assume .lib is static. // - if (!an.empty () && (s != nullptr || cid != "msvc")) + if (!an.empty () && (s != nullptr || cid != compiler_id::msvc)) { f = d; f /= an; @@ -682,7 +682,7 @@ namespace build2 // Alternative search for VC. // - if (cid == "msvc") + if (cid == compiler_id::msvc) { const scope& rs (*p.scope->root_scope ()); const process_path& ld (cast (rs["bin.ld.path"])); @@ -879,7 +879,7 @@ namespace build2 dir_path d; - if (cid == "msvc") + if (cid == compiler_id::msvc) { // /LIBPATH: (case-insensitive). // -- cgit v1.1