]> git.tdb.fi Git - builder.git/blobdiff - source/builder.h
Improve prefix management
[builder.git] / source / builder.h
index 331c50ab9a57be2c92fb2ed91a4fab98c598d2b0..e06cec34e73c6efbea21f1dee7a5839d15ef7e96 100644 (file)
@@ -56,6 +56,7 @@ private:
        Logger default_logger;
        const Logger *logger;
 
+       bool auto_prefix = true;
        Msp::FS::Path prefix;
        Msp::FS::Path tempdir = "temp";
 
@@ -79,6 +80,10 @@ public:
        const Msp::FS::Path &get_prefix() const { return prefix; }
        const Msp::FS::Path &get_temp_directory() const { return tempdir; }
 
+private:
+       void update_auto_prefix();
+
+public:
        void add_default_tools();
        const Toolchain &get_toolchain() const { return toolchain; }
        VirtualFileSystem &get_vfs() { return vfs; }