From: Mikko Rasa Date: Mon, 19 Dec 2022 19:14:28 +0000 (+0200) Subject: Log environment information before preparing the build X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1f741a165cc715e4df92f1f2f5d77339a39be73a;p=builder.git Log environment information before preparing the build --- 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;