From 52a9d9a9e481f835e9c3b9ba028ff2f833cb3624 Mon Sep 17 00:00:00 2001 From: ras0219 <533828+ras0219@users.noreply.github.com> Date: Mon, 13 Jul 2020 12:03:53 -0700 Subject: [vcpkg] Enable binary caching by default (#12370) * [vcpkg] Enable binary caching by default. Support `x-` migration. Fix passing multiple copies of single parameter arguments. * [vcpkg] Handle x- prefixes for general arguments * [vcpkg] Fix #12285 and improve documentation of default binary cache path * [vcpkg] Revert x- prefix homogenization for per-command arguments * [vcpkg] Only use accelerated compiler detection for Windows Desktop + Ninja. Improve breadcrumbs for users encountering issues. * [vcpkg] Fix compiler tracking not pre-downloading Ninja. Fix compiler tracking not looking in -err.log. * [vcpkg] Update toolsrc/src/vcpkg/binarycaching.cpp Co-authored-by: Billy O'Neal * [vcpkg] Format Co-authored-by: Robert Schumacher Co-authored-by: Billy O'Neal --- toolsrc/include/vcpkg/vcpkgcmdarguments.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/vcpkgcmdarguments.h b/toolsrc/include/vcpkg/vcpkgcmdarguments.h index 6973311b0..8cf0680b9 100644 --- a/toolsrc/include/vcpkg/vcpkgcmdarguments.h +++ b/toolsrc/include/vcpkg/vcpkgcmdarguments.h @@ -135,7 +135,7 @@ namespace vcpkg constexpr static StringLiteral OVERLAY_TRIPLETS_ARG = "overlay-triplets"; std::vector overlay_triplets; - constexpr static StringLiteral BINARY_SOURCES_ARG = "x-binarysource"; + constexpr static StringLiteral BINARY_SOURCES_ARG = "binarysource"; std::vector binary_sources; constexpr static StringLiteral DEBUG_SWITCH = "debug"; @@ -166,8 +166,8 @@ namespace vcpkg constexpr static StringLiteral MANIFEST_MODE_FEATURE = "manifests"; Optional manifest_mode = nullopt; - bool binary_caching_enabled() const { return binary_caching.value_or(false); } - bool compiler_tracking_enabled() const { return compiler_tracking.value_or(false); } + bool binary_caching_enabled() const { return binary_caching.value_or(true); } + bool compiler_tracking_enabled() const { return compiler_tracking.value_or(true); } std::string command; std::vector command_arguments; -- cgit v1.2.3