aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-04 18:32:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-04 18:32:24 +0200
commit58786895f1d7a0af30cb7cd240c4dcb6133ea84d (patch)
tree512981fece7655277e3a0ae415774072df8eef9a
parent1a578f5c5ad34ff5c6303f11937980b738055ad0 (diff)
Change freebsd target class to bsd
-rw-r--r--butl/triplet2
-rw-r--r--butl/triplet.cxx4
-rw-r--r--tests/triplet/driver.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/butl/triplet b/butl/triplet
index 013818e..69dc9df 100644
--- a/butl/triplet
+++ b/butl/triplet
@@ -85,7 +85,7 @@ namespace butl
//
// linux *-*-linux-*
// macosx *-apple-darwin*
- // freebsd *-*-freebsd*
+ // bsd *-*-(freebsd|openbsd|netbsd)*
// windows *-*-win32-* | *-*-mingw32
//
// References:
diff --git a/butl/triplet.cxx b/butl/triplet.cxx
index 39057a3..3ce5033 100644
--- a/butl/triplet.cxx
+++ b/butl/triplet.cxx
@@ -125,8 +125,8 @@ namespace butl
class_ = "linux";
else if (vendor == "apple" && system == "darwin")
class_ = "macosx";
- else if (system == "freebsd")
- class_ = "freebsd";
+ else if (system == "freebsd" || system == "openbsd" || system == "netbsd")
+ class_ = "bsd";
else if (system.compare (0, 5, "win32") == 0 || system == "mingw32")
class_ = "windows";
else
diff --git a/tests/triplet/driver.cxx b/tests/triplet/driver.cxx
index 51bb7e0..ff9b065 100644
--- a/tests/triplet/driver.cxx
+++ b/tests/triplet/driver.cxx
@@ -94,11 +94,11 @@ main ()
assert (test ("x86_64-unknown-freebsd10.2",
"x86_64-freebsd10.2",
- "x86_64", "", "freebsd", "10.2", "freebsd"));
+ "x86_64", "", "freebsd", "10.2", "bsd"));
assert (test ("x86_64-pc-openbsd5.6",
"x86_64-openbsd5.6",
- "x86_64", "", "openbsd", "5.6"));
+ "x86_64", "", "openbsd", "5.6", "bsd"));
assert (test ("sparc-sun-solaris2.9",
"sparc-sun-solaris2.9",