diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-05-03 16:33:02 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-05-04 15:06:18 -0700 |
| commit | 7bdf189a921fdee47044e907a3ff48ce8c880fe2 (patch) | |
| tree | f9e5b253020e4134ad58562fccece9d7832c6df5 /toolsrc/src/triplet.cpp | |
| parent | a66b066d4584d6b92d249d71b9348344efc78d5e (diff) | |
| download | vcpkg-7bdf189a921fdee47044e907a3ff48ce8c880fe2.tar.gz vcpkg-7bdf189a921fdee47044e907a3ff48ce8c880fe2.zip | |
Rework vcpkg's triplet environment reading
The triplet is "run" and vcpkg observes the environment.
Previously, the environment was deduced by the triplet's name
Diffstat (limited to 'toolsrc/src/triplet.cpp')
| -rw-r--r-- | toolsrc/src/triplet.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/toolsrc/src/triplet.cpp b/toolsrc/src/triplet.cpp index 411c6c28a..ff41ce77d 100644 --- a/toolsrc/src/triplet.cpp +++ b/toolsrc/src/triplet.cpp @@ -32,17 +32,5 @@ namespace vcpkg const std::string& Triplet::canonical_name() const { return this->m_canonical_name; } - std::string Triplet::architecture() const - { - auto it = std::find(this->m_canonical_name.cbegin(), this->m_canonical_name.cend(), '-'); - return std::string(this->m_canonical_name.cbegin(), it); - } - - std::string Triplet::system() const - { - auto it = std::find(this->m_canonical_name.cbegin(), this->m_canonical_name.cend(), '-'); - return std::string(it + 1, this->m_canonical_name.cend()); - } - const std::string& Triplet::to_string() const { return this->m_canonical_name; } } |
