]> git.tdb.fi Git - builder.git/blobdiff - source/buildercli.cpp
Add gcc's private library directory to ClangLinker's system path
[builder.git] / source / buildercli.cpp
index 2469f5162862faf199f0931105cede9e0f0b72fa..bc18eed9f37366f4250cc2955d47026cba5f3b33 100644 (file)
@@ -15,19 +15,7 @@ using namespace std;
 using namespace Msp;
 
 BuilderCLI::BuilderCLI(int argc, char **argv):
-       RegisteredApplication<BuilderCLI>("builder"),
-       analyzer(0),
-       build(false),
-       clean(0),
-       dry_run(false),
-       help(false),
-       show_progress(false),
-       build_file("Build"),
-       jobs(1),
-       conf_all(false),
-       conf_only(false),
-       build_all(false),
-       create_makefile(false)
+       RegisteredApplication<BuilderCLI>("builder")
 {
        string analyze_mode;
        string work_dir;
@@ -195,8 +183,8 @@ int BuilderCLI::main()
 
        if(help)
        {
-               IO::print("Builder 1.0\n"
-                       "Copyright © 2006-2013  Mikkosoft Productions, Mikko Rasa\n"
+               IO::print("Builder 3.0\n"
+                       "Copyright © 2006-2022  Mikkosoft Productions, Mikko Rasa\n"
                        "Licensed under the GPL\n\n"
                        "%s", helpmsg);
                package_help();
@@ -205,16 +193,16 @@ int BuilderCLI::main()
 
        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(),
-               current_arch.get_name(), (current_arch.is_native() ? " (native)" : "")));
-       logger.log("environment", format("Prefix is %s", builder.get_prefix()));
+       logger.log("environment", "Building on %s, for %s%s", native_arch.get_name(),
+               current_arch.get_name(), (current_arch.is_native() ? " (native)" : ""));
+       logger.log("environment", "Prefix is %s", builder.get_prefix());
        const FS::Path &tempdir = builder.get_temp_directory();
        if(tempdir.is_absolute())
-               logger.log("environment", format("Temporary directory is %s", tempdir));
+               logger.log("environment", "Temporary directory is %s", tempdir);
        else
-               logger.log("environment", format("Using per-package temporary directory %s", tempdir));
+               logger.log("environment", "Using per-package temporary directory %s", tempdir);
        const BuildType &build_type = builder.get_build_type();
-       logger.log("environment", format("Build type is %s", build_type.get_name()));
+       logger.log("environment", "Build type is %s", build_type.get_name());
 
        if(!prepare_build())
                return 1;
@@ -256,7 +244,7 @@ int BuilderCLI::main()
                package_details.push_back(line);
        }
 
-       logger.log("summary", format("%d active packages, %d targets", package_details.size(), build_graph.get_targets().size()));
+       logger.log("summary", "%d active packages, %d targets", package_details.size(), build_graph.get_targets().size());
        for(const string &d: package_details)
                logger.log("packages", d);