From ca1aa816d2af1b600f68b1c965bed5bd180d829a Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 14 Nov 2017 15:27:12 -0800 Subject: [vcpkg-ci] Clean up buildtrees during build to avoid consuming 200+ Gb of SSD --- toolsrc/include/vcpkg/install.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/install.h b/toolsrc/include/vcpkg/install.h index 7bf823e99..df7542318 100644 --- a/toolsrc/include/vcpkg/install.h +++ b/toolsrc/include/vcpkg/install.h @@ -17,6 +17,17 @@ namespace vcpkg::Install inline KeepGoing to_keep_going(const bool value) { return value ? KeepGoing::YES : KeepGoing::NO; } + enum class CleanBuildtrees + { + NO = 0, + YES + }; + + inline CleanBuildtrees to_clean_buildtrees(const bool value) + { + return value ? CleanBuildtrees::YES : CleanBuildtrees::NO; + } + struct SpecSummary { explicit SpecSummary(const PackageSpec& spec); @@ -70,6 +81,7 @@ namespace vcpkg::Install InstallSummary perform(const std::vector& action_plan, const KeepGoing keep_going, + const CleanBuildtrees clean_buildtrees, const VcpkgPaths& paths, StatusParagraphs& status_db); -- cgit v1.2.3