]> git.tdb.fi Git - builder.git/blobdiff - source/builder.h
Make tempdir a global option
[builder.git] / source / builder.h
index cd6bf16d34fd950ea68ce0fc14a3506ce3e814b6..cdf615d768383d9691371c2c2e186f7dabad5b4c 100644 (file)
@@ -84,6 +84,7 @@ private:
        bool build_all;
        bool create_makefile;
        Msp::FS::Path prefix;
+       Msp::FS::Path tempdir;
        StringList warnings;
 
        static std::string usagemsg;
@@ -108,6 +109,7 @@ public:
        const Architecture &get_current_arch() const { return *current_arch; }
        const Architecture &get_native_arch() const { return native_arch; }
        const Msp::FS::Path &get_prefix() const { return prefix; }
+       const Msp::FS::Path &get_temp_directory() const { return tempdir; }
        const StringList &get_warnings() const { return warnings; }
 
        const Toolchain &get_toolchain() const { return toolchain; }