diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 03:12:15 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-04-07 03:12:15 -0700 |
| commit | f07026539835aad4b87e2a88b3e38e144edaa9dd (patch) | |
| tree | e0aeefa231fe68ebfefa622e3fe816e284660097 | |
| parent | 8d343ce6dfc850abdfbfd098765df072271ae6ad (diff) | |
| download | vcpkg-f07026539835aad4b87e2a88b3e38e144edaa9dd.tar.gz vcpkg-f07026539835aad4b87e2a88b3e38e144edaa9dd.zip | |
[export.cpp] Define all valuse in BuildOptions
| -rw-r--r-- | toolsrc/src/vcpkg/export.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg/export.cpp b/toolsrc/src/vcpkg/export.cpp index 32151c791..eda909635 100644 --- a/toolsrc/src/vcpkg/export.cpp +++ b/toolsrc/src/vcpkg/export.cpp @@ -70,8 +70,11 @@ namespace vcpkg::Export { static constexpr std::array<ExportPlanType, 2> ORDER = {ExportPlanType::ALREADY_BUILT, ExportPlanType::NOT_BUILT}; - static constexpr Build::BuildPackageOptions build_options = {Build::UseHeadVersion::NO, - Build::AllowDownloads::YES}; + static constexpr Build::BuildPackageOptions BUILD_OPTIONS = {Build::UseHeadVersion::NO, + Build::AllowDownloads::YES, + Build::CleanBuildtrees::NO, + Build::CleanPackages::NO, + Build::DownloadTool::BUILT_IN}; for (const ExportPlanType plan_type : ORDER) { @@ -84,7 +87,7 @@ namespace vcpkg::Export std::vector<const ExportPlanAction*> cont = it->second; std::sort(cont.begin(), cont.end(), &ExportPlanAction::compare_by_name); const std::string as_string = Strings::join("\n", cont, [](const ExportPlanAction* p) { - return Dependencies::to_output_string(p->request_type, p->spec.to_string(), build_options); + return Dependencies::to_output_string(p->request_type, p->spec.to_string(), BUILD_OPTIONS); }); switch (plan_type) |
