From ee0201cfae196c175d58064b2e62a91c033ec038 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sun, 23 Apr 2017 01:30:43 -0700 Subject: [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. --- toolsrc/src/commands_ci.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'toolsrc/src/commands_ci.cpp') 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) -- cgit v1.2.3