diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-05-05 00:26:51 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-05-05 00:26:51 -0700 |
| commit | fcb60f72593275a5727c93edc31f0a35d420d069 (patch) | |
| tree | 4ffb3ccec34ddb347925c2cb874063f274aae61f /toolsrc/src/commands_build.cpp | |
| parent | dc2bdbd4adb27ac81b5e7e91d8275913838bc4a1 (diff) | |
| parent | e4c5ef656607a1165566b338f5a85f907a627f86 (diff) | |
| download | vcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.tar.gz vcpkg-fcb60f72593275a5727c93edc31f0a35d420d069.zip | |
Merge branch 'master' into KindDragon-snappy
Diffstat (limited to 'toolsrc/src/commands_build.cpp')
| -rw-r--r-- | toolsrc/src/commands_build.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp index fe84f4b13..ec6586fa3 100644 --- a/toolsrc/src/commands_build.cpp +++ b/toolsrc/src/commands_build.cpp @@ -3,14 +3,11 @@ #include "Paragraphs.h" #include "PostBuildLint.h" #include "StatusParagraphs.h" -#include "metrics.h" -#include "vcpkg_Chrono.h" #include "vcpkg_Commands.h" #include "vcpkg_Dependencies.h" #include "vcpkg_Enums.h" #include "vcpkg_Input.h" #include "vcpkg_System.h" -#include "vcpkg_Util.h" #include "vcpkglib.h" using vcpkg::Build::BuildResult; @@ -29,8 +26,9 @@ namespace vcpkg::Commands::BuildCommand { if (options.find(OPTION_CHECKS_ONLY) != options.end()) { + auto pre_build_info = Build::PreBuildInfo::from_triplet_file(paths, spec.triplet()); auto build_info = Build::read_build_info(paths.get_filesystem(), paths.build_info_file_path(spec)); - const size_t error_count = PostBuildLint::perform_all_checks(spec, paths, build_info); + const size_t error_count = PostBuildLint::perform_all_checks(spec, paths, pre_build_info, build_info); Checks::check_exit(VCPKG_LINE_INFO, error_count == 0); Checks::exit_success(VCPKG_LINE_INFO); } |
