diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-07 12:31:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-07 12:31:06 +0200 |
commit | b211edb78d90939eefd6e784c940c9a6ad9ccc2f (patch) | |
tree | 8c9a796e99f6e767d942c89e1c3c47b640b43053 /butl/triplet.cxx | |
parent | a57637c393a1296b48fdb356b53e994e540399f5 (diff) |
Recognize msvc target triplet
Diffstat (limited to 'butl/triplet.cxx')
-rw-r--r-- | butl/triplet.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/butl/triplet.cxx b/butl/triplet.cxx index 3208375..8369539 100644 --- a/butl/triplet.cxx +++ b/butl/triplet.cxx @@ -106,13 +106,14 @@ namespace butl // Finally, extract VERSION for some recognized systems. // string::size_type v (0); - if (system.compare (0, (v = 6), "darwin") == 0 || - system.compare (0, (v = 7), "freebsd") == 0 || - system.compare (0, (v = 7), "openbsd") == 0 || - system.compare (0, (v = 7), "netbsd") == 0 || - system.compare (0, (v = 7), "solaris") == 0 || - system.compare (0, (v = 7), "aix") == 0 || - system.compare (0, (v = 7), "hpux") == 0) + if (system.compare (0, (v = 6), "darwin") == 0 || + system.compare (0, (v = 7), "freebsd") == 0 || + system.compare (0, (v = 7), "openbsd") == 0 || + system.compare (0, (v = 6), "netbsd") == 0 || + system.compare (0, (v = 7), "solaris") == 0 || + system.compare (0, (v = 3), "aix") == 0 || + system.compare (0, (v = 4), "hpux") == 0 || + system.compare (0, (v = 10), "win32-msvc") == 0) { version.assign (system, v, string::npos); system.resize (system.size () - version.size ()); |