]> git.tdb.fi Git - builder.git/commitdiff
Log environment information before preparing the build
authorMikko Rasa <tdb@tdb.fi>
Mon, 19 Dec 2022 19:14:28 +0000 (21:14 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 19 Dec 2022 19:14:28 +0000 (21:14 +0200)
source/buildercli.cpp

index 2e588aded12e2a2158432b83bbfb0d289ca8c534..8ba8d96bdba0e105ac3f43bf811fbe05af9eddb8 100644 (file)
@@ -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 &current_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<string> package_details;