diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-03 17:20:52 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-03 17:20:52 -0700 |
| commit | 330b411cd2f4aa25632b2ae5ea2fef396fb13d12 (patch) | |
| tree | c7aa03d21ebb2ad58241f3f412fd13bdb34d8397 /toolsrc/src/lib.cpp | |
| parent | e03e617f069471c34e90b1a84e256c1607252f04 (diff) | |
| download | vcpkg-330b411cd2f4aa25632b2ae5ea2fef396fb13d12.tar.gz vcpkg-330b411cd2f4aa25632b2ae5ea2fef396fb13d12.zip | |
[triplet] Force using the factory that does sanity checks
Diffstat (limited to 'toolsrc/src/lib.cpp')
| -rw-r--r-- | toolsrc/src/lib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/lib.cpp b/toolsrc/src/lib.cpp index 2a9b06d4a..2127b7850 100644 --- a/toolsrc/src/lib.cpp +++ b/toolsrc/src/lib.cpp @@ -158,7 +158,7 @@ static void install_and_write_listfile(const vcpkg_paths& paths, const BinaryPar auto prefix_length = package_prefix_path.native().size(); std::error_code ec; - fs::create_directory(paths.installed / bpgh.target_triplet.value, ec); + fs::create_directory(paths.installed / bpgh.target_triplet.canonical_name(), ec); listfile << bpgh.target_triplet << "\n"; for (auto it = fs::recursive_directory_iterator(package_prefix_path); it != fs::recursive_directory_iterator(); ++it) @@ -171,7 +171,7 @@ static void install_and_write_listfile(const vcpkg_paths& paths, const BinaryPar } auto suffix = it->path().generic_u8string().substr(prefix_length + 1); - auto target = paths.installed / bpgh.target_triplet.value / suffix; + auto target = paths.installed / bpgh.target_triplet.canonical_name() / suffix; auto status = it->status(ec); if (ec) |
