aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-11-14 15:27:12 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-11-14 15:27:12 -0800
commitca1aa816d2af1b600f68b1c965bed5bd180d829a (patch)
tree17527fc633722391e9ad1357ea08e224e140144c /toolsrc/include
parent5c9f0ff47324634a9796ed5d6cd7350cb06022c2 (diff)
downloadvcpkg-ca1aa816d2af1b600f68b1c965bed5bd180d829a.tar.gz
vcpkg-ca1aa816d2af1b600f68b1c965bed5bd180d829a.zip
[vcpkg-ci] Clean up buildtrees during build to avoid consuming 200+ Gb of SSD
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/install.h12
1 files changed, 12 insertions, 0 deletions
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<Dependencies::AnyAction>& action_plan,
const KeepGoing keep_going,
+ const CleanBuildtrees clean_buildtrees,
const VcpkgPaths& paths,
StatusParagraphs& status_db);