PackageManager package_manager;
Architecture native_arch;
- Architecture *current_arch;
+ Architecture *current_arch = 0;
std::map<std::string, BuildType> build_types;
- BuildType *build_type;
+ BuildType *build_type = 0;
Toolchain toolchain;
VirtualFileSystem vfs;
BuildGraph build_graph;
Logger default_logger;
const Logger *logger;
+ bool auto_prefix = true;
Msp::FS::Path prefix;
- Msp::FS::Path tempdir;
+ Msp::FS::Path tempdir = "temp";
- Loader *top_loader;
+ Loader *top_loader = 0;
public:
Builder();
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; }