aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:51:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:51:38 +0200
commit78ac6aee6dff1b608bc312fe7ada442ba83710e8 (patch)
treee887435cf8af9ae0e13646e452202f68516a958d /libbuild2/bin
parent2896bd88378712fcd253e0a03b20892acb1dd299 (diff)
Complete NetBSD compatibility
Diffstat (limited to 'libbuild2/bin')
-rw-r--r--libbuild2/bin/guess.cxx5
-rw-r--r--libbuild2/bin/init.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/libbuild2/bin/guess.cxx b/libbuild2/bin/guess.cxx
index e103c43..21936d9 100644
--- a/libbuild2/bin/guess.cxx
+++ b/libbuild2/bin/guess.cxx
@@ -123,6 +123,11 @@ namespace build2
// version (maybe we could run llvm-ar instead -- it seems to be always
// around).
//
+ // On NetBSD we get:
+ //
+ // GNU ar (NetBSD Binutils nb1) 2.31.1
+ // GNU ranlib (NetBSD Binutils nb1) 2.31.1
+ //
{
auto f = [&ar] (string& l, bool) -> guess_result
{
diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx
index de8b12a..0d2d9b5 100644
--- a/libbuild2/bin/init.cxx
+++ b/libbuild2/bin/init.cxx
@@ -327,7 +327,7 @@ namespace build2
target_triplet t (s);
l5 ([&]{trace << "canonical target: '" << t.string () << "'; "
- << "class: " << t.class_ << " source: " << s;});
+ << "class: " << t.class_;});
assert (!hint || s == t.string ());