aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-25 11:32:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-25 11:32:01 +0200
commit71d9aedda0919fb22e39d6e6ce60506ceb69812e (patch)
tree585afc25774555047ff41dc865c617732caf5ff2 /build2/cc/common.cxx
parenta1f459f8446370704695919b3131653300866ee9 (diff)
Add compiler_id enum
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r--build2/cc/common.cxx10
1 files changed, 5 insertions, 5 deletions
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<process_path> (rs["bin.ld.path"]));
@@ -879,7 +879,7 @@ namespace build2
dir_path d;
- if (cid == "msvc")
+ if (cid == compiler_id::msvc)
{
// /LIBPATH:<dir> (case-insensitive).
//