From 9223a08134bfa4afc5f9d9ac73ed7dd44092fb07 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Mon, 8 May 2017 20:52:53 -0700 Subject: [vcpkg][folly] Fix post lint checks for folly. --- toolsrc/src/PostBuildLint.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toolsrc/src/PostBuildLint.cpp') diff --git a/toolsrc/src/PostBuildLint.cpp b/toolsrc/src/PostBuildLint.cpp index 294645e82..0d2f556c1 100644 --- a/toolsrc/src/PostBuildLint.cpp +++ b/toolsrc/src/PostBuildLint.cpp @@ -427,6 +427,11 @@ namespace vcpkg::PostBuildLint "The file extension was not .lib: %s", file.generic_string()); COFFFileReader::LibInfo info = COFFFileReader::read_lib(file); + + // This is zero for folly's debug library + // TODO: Why? + if (info.machine_types.size() == 0) return LintStatus::SUCCESS; + Checks::check_exit(VCPKG_LINE_INFO, info.machine_types.size() == 1, "Found more than 1 architecture in file %s", -- cgit v1.2.3