From f9bdf139535f25dd0847fecff22a1c8c606da613 Mon Sep 17 00:00:00 2001 From: ras0219 <533828+ras0219@users.noreply.github.com> Date: Tue, 7 Jul 2020 13:53:19 -0700 Subject: [vcpkg] Implement --editable (#12200) --editable suppresses binary caching and source re-extraction for packages listed on the command line (similar to --head). This fundamentally changes the port maintenance loop, so several example documents were updated. To avoid users having substantial changes suddenly destroyed by forgetting to pass --editable, "clean" sources have different extract locations. The undocumented command `build` implies `--editable`. Co-authored-by: Robert Schumacher --- toolsrc/include/vcpkg/build.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h index 9d4e17eae..5d29b0bc3 100644 --- a/toolsrc/include/vcpkg/build.h +++ b/toolsrc/include/vcpkg/build.h @@ -128,6 +128,12 @@ namespace vcpkg::Build YES }; + enum class Editable + { + NO = 0, + YES + }; + struct BuildPackageOptions { UseHeadVersion use_head_version; @@ -138,6 +144,7 @@ namespace vcpkg::Build CleanDownloads clean_downloads; DownloadTool download_tool; PurgeDecompressFailure purge_decompress_failure; + Editable editable; }; static constexpr BuildPackageOptions default_build_package_options{ @@ -149,6 +156,7 @@ namespace vcpkg::Build Build::CleanDownloads::NO, Build::DownloadTool::BUILT_IN, Build::PurgeDecompressFailure::YES, + Build::Editable::NO, }; static constexpr std::array BUILD_RESULT_VALUES = { -- cgit v1.2.3