#include <set>
+#include <msp/core/except.h>
#include <msp/core/maputils.h>
#include <msp/datafile/parser.h>
#include <msp/fs/dir.h>
return keys;
}
+const BuildType &Builder::get_build_type() const
+{
+ if(!build_type)
+ throw invalid_state("no build type");
+ return *build_type;
+}
+
void Builder::set_build_type(const string &name)
{
build_type = &get_item(build_types, name);
const Architecture &get_native_arch() const { return native_arch; }
void set_build_type(const std::string &);
std::vector<std::string> get_build_types() const;
- const BuildType &get_build_type() const { return *build_type; }
+ const BuildType &get_build_type() const;
BuildGraph &get_build_graph() { return build_graph; }
void set_prefix(const Msp::FS::Path &);
void set_temp_directory(const Msp::FS::Path &);