aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/link.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
commiteb264e1892c2a1379fa3bcab9aefea219e8e7138 (patch)
tree1031f859076b2d8f117a2948ec1184a5536f9cbc /build/cxx/link.cxx
parent55471ef43695408bae2237374be4637c302d1c87 (diff)
Rework diagnostics verbosity, add quiet mode/option
Diffstat (limited to 'build/cxx/link.cxx')
-rw-r--r--build/cxx/link.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/cxx/link.cxx b/build/cxx/link.cxx
index 2554930..6742ff2 100644
--- a/build/cxx/link.cxx
+++ b/build/cxx/link.cxx
@@ -113,7 +113,7 @@ namespace build
args.push_back ("-print-search-dirs");
args.push_back (nullptr);
- if (verb >= 5)
+ if (verb >= 3)
print_process (args);
string l;
@@ -399,7 +399,7 @@ namespace build
//
if (seen_c && !seen_cxx && hint < "cxx")
{
- level3 ([&]{trace << "c prerequisite(s) without c++ or hint";});
+ level4 ([&]{trace << "c prerequisite(s) without c++ or hint";});
return nullptr;
}
@@ -807,9 +807,9 @@ namespace build
args.push_back (nullptr);
- if (verb)
+ if (verb >= 2)
print_process (args);
- else
+ else if (verb)
text << "ld " << t;
try