From 1f741a165cc715e4df92f1f2f5d77339a39be73a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 19 Dec 2022 21:14:28 +0200 Subject: [PATCH] Log environment information before preparing the build --- source/buildercli.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/buildercli.cpp b/source/buildercli.cpp index 2e588ad..8ba8d96 100644 --- a/source/buildercli.cpp +++ b/source/buildercli.cpp @@ -203,12 +203,6 @@ int BuilderCLI::main() return 0; } - if(!prepare_build()) - return 1; - - if(conf_only) - return 0; - const Architecture &native_arch = builder.get_native_arch(); const Architecture ¤t_arch = builder.get_current_arch(); logger.log("environment", format("Building on %s, for %s%s", native_arch.get_name(), @@ -222,6 +216,12 @@ int BuilderCLI::main() const BuildType &build_type = builder.get_build_type(); logger.log("environment", format("Build type is %s", build_type.get_name())); + if(!prepare_build()) + return 1; + + if(conf_only) + return 0; + BuildGraph &build_graph = builder.get_build_graph(); PackageManager &package_manager = builder.get_package_manager(); list package_details; -- 2.45.2