aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-27 11:42:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-27 11:42:35 +0200
commit0d34b2f7692aba066213c038b810623c216b6980 (patch)
tree9c2d5db91cf075b84307957a8d9d3d10b1773a90 /build2/cc/common.cxx
parent6324239cf260f82312143a83855eb53bdc890a70 (diff)
Add {c,cxx}.class variables
Compiler class describes a set of compilers that follow more or less the same command line interface. Compilers that don't belong to any of the existing classes are in classes of their own (say, Sun CC would be on its own if we were to support it). Currently defined compiler classes: gcc gcc, clang, clang-apple, icc (on non-Windows) msvc msvc, clang-cl, icc (Windows)
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 e022abb..951cc47 100644
--- a/build2/cc/common.cxx
+++ b/build2/cc/common.cxx
@@ -532,7 +532,7 @@ namespace build2
//
const char* e ("");
- if (cid == compiler_id::msvc)
+ if (cclass == compiler_class::msvc)
{
an = path (name);
e = "lib";
@@ -560,7 +560,7 @@ namespace build2
{
const char* e ("");
- if (cid == compiler_id::msvc)
+ if (cclass == compiler_class::msvc)
{
sn = path (name);
e = "dll.lib";
@@ -679,7 +679,7 @@ namespace build2
//
// If we didn't find .dll.lib then we cannot assume .lib is static.
//
- if (!an.empty () && (s != nullptr || cid != compiler_id::msvc))
+ if (!an.empty () && (s != nullptr || cclass != compiler_class::msvc))
{
f = d;
f /= an;
@@ -700,7 +700,7 @@ namespace build2
// Alternative search for VC.
//
- if (cid == compiler_id::msvc)
+ if (cclass == compiler_class::msvc)
{
const scope& rs (*p.scope->root_scope ());
const process_path& ld (cast<process_path> (rs["bin.ld.path"]));
@@ -899,7 +899,7 @@ namespace build2
dir_path d;
- if (cid == compiler_id::msvc)
+ if (cclass == compiler_class::msvc)
{
// /LIBPATH:<dir> (case-insensitive).
//