#ifndef BUILDER_H_
#define BUILDER_H_
-#include <list>
#include <map>
#include <string>
#include <msp/datafile/loader.h>
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;
const Logger *logger;
Msp::FS::Path prefix;
- Msp::FS::Path tempdir;
+ Msp::FS::Path tempdir = "temp";
- Loader *top_loader;
+ Loader *top_loader = 0;
public:
Builder();
void set_logger(const Logger *);
const Logger &get_logger() const { return *logger; }
- std::list<std::string> collect_problems() const;
+ std::vector<std::string> collect_problems() const;
/** Loads a build file. If opts is not null, it is used to configure any
packages loaded from this file. If all is true, external packages are also