diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-25 17:18:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-25 17:44:42 +0200 |
commit | 8ababa51319753c5c697374c722bb01e845e3e68 (patch) | |
tree | c8f89bffc129d3004da232c327eb81b9a1459e77 /build2/cc/link-rule.cxx | |
parent | 59dec666d17fdd7c5394c3c081cf21381a8af07d (diff) |
Redesign cc::compiler_id to make variant customizable
Diffstat (limited to 'build2/cc/link-rule.cxx')
-rw-r--r-- | build2/cc/link-rule.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index 0ff339d..230fc6f 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -23,7 +23,9 @@ #include <build2/cc/target.hxx> // c, pc* #include <build2/cc/utility.hxx> -using namespace std; +using std::map; +using std::exit; + using namespace butl; namespace build2 @@ -2143,7 +2145,7 @@ namespace build2 if (!find_option ("/INCREMENTAL", args, true)) args.push_back ("/INCREMENTAL:NO"); - if (cid == compiler_id::clang) + if (ctype == compiler_type::clang) { // According to Clang's MSVC.cpp, we shall link libcmt.lib (static // multi-threaded runtime) unless -nostdlib or -nostartfiles is |