]> git.tdb.fi Git - builder.git/blobdiff - source/builder.cpp
Put constructor helper functions next to the constructors
[builder.git] / source / builder.cpp
index 1787ec17ca05b9cee8ffbf54b4065bef15a2e62e..4ca2e43ec87bdcef8942f49e4fd85aebafd25dcf 100644 (file)
@@ -183,10 +183,10 @@ Builder::Builder(int argc, char **argv):
                        }
        }
 
-       toolchain.add_tool(new GnuCCompiler(*this));
-       toolchain.add_tool(new GnuCxxCompiler(*this));
-       toolchain.add_tool(new GnuLinker(*this));
-       toolchain.add_tool(new GnuArchiver(*this));
+       toolchain.add_tool(new GnuCCompiler(*this, *current_arch));
+       toolchain.add_tool(new GnuCxxCompiler(*this, *current_arch));
+       toolchain.add_tool(new GnuLinker(*this, *current_arch));
+       toolchain.add_tool(new GnuArchiver(*this, *current_arch));
        toolchain.add_tool(new Copy(*this));
        toolchain.add_tool(new Tar(*this));
        toolchain.add_tool(new PkgConfigGenerator(*this));