aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_ci.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-23 01:30:43 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-23 01:30:43 -0700
commitee0201cfae196c175d58064b2e62a91c033ec038 (patch)
tree76690e3d383237ee50247c9b56c8908d7148f62f /toolsrc/src/commands_ci.cpp
parente48fdb66a5be01321e68b371c6c171ed0fec3054 (diff)
downloadvcpkg-ee0201cfae196c175d58064b2e62a91c033ec038.tar.gz
vcpkg-ee0201cfae196c175d58064b2e62a91c033ec038.zip
[vcpkg-build] Fix regression in build command.
Missing dependencies were not being computed correctly after the internal call to build failed. Solution is to return the already-computed list from build.
Diffstat (limited to 'toolsrc/src/commands_ci.cpp')
-rw-r--r--toolsrc/src/commands_ci.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/toolsrc/src/commands_ci.cpp b/toolsrc/src/commands_ci.cpp
index 5393dd8e0..b7fc9e1c0 100644
--- a/toolsrc/src/commands_ci.cpp
+++ b/toolsrc/src/commands_ci.cpp
@@ -66,11 +66,13 @@ namespace vcpkg::Commands::CI
{
System::println("Building package %s... ", display_name);
auto&& source_paragraph = action.any_paragraph.source_paragraph.value_or_exit(VCPKG_LINE_INFO);
- const BuildResult result = Commands::Build::build_package(source_paragraph,
- action.spec,
- paths,
- paths.port_dir(action.spec),
- status_db);
+ const auto result_ex = Commands::Build::build_package(source_paragraph,
+ action.spec,
+ paths,
+ paths.port_dir(action.spec),
+ status_db);
+ const auto result = result_ex.code;
+
timing.back() = build_timer.to_string();
results.back() = result;
if (result != BuildResult::SUCCEEDED)