aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_build.cpp')
-rw-r--r--toolsrc/src/commands_build.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp
index b6be68f02..fe84f4b13 100644
--- a/toolsrc/src/commands_build.cpp
+++ b/toolsrc/src/commands_build.cpp
@@ -42,9 +42,17 @@ namespace vcpkg::Commands::BuildCommand
spec,
maybe_spgh.error_code().message());
const SourceParagraph& spgh = *maybe_spgh.get();
+ Checks::check_exit(VCPKG_LINE_INFO,
+ spec.name() == spgh.name,
+ "The Name: field inside the CONTROL does not match the port directory: '%s' != '%s'",
+ spgh.name,
+ spec.name());
StatusParagraphs status_db = database_load_check(paths);
- const auto result = Build::build_package(spgh, spec, paths, paths.port_dir(spec), status_db);
+ const Build::BuildPackageConfig build_config{
+ spgh, spec.triplet(), paths.port_dir(spec),
+ };
+ const auto result = Build::build_package(paths, build_config, status_db);
if (result.code == BuildResult::CASCADED_DUE_TO_MISSING_DEPENDENCIES)
{
System::println(System::Color::error,