aboutsummaryrefslogtreecommitdiff
path: root/src/Conf.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-28 16:57:06 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-28 16:57:11 +0100
commit1f583ebb6e3973c992d59886659bf53ff87f41de (patch)
treecfefa98bf921d443f577785d744a5fe6d12f2e86 /src/Conf.cpp
parentda405ce0c1c9c675aee1710917d9d89b7eb34922 (diff)
Add optimization level option to building
Diffstat (limited to 'src/Conf.cpp')
-rw-r--r--src/Conf.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index 97d562c..d6aee2c 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -332,6 +332,16 @@ namespace sibs
return Parser::parse(code, callback);
}
+ const char* asString(OptimizationLevel optLevel)
+ {
+ switch(optLevel)
+ {
+ case OPT_LEV_NONE: return "none";
+ case OPT_LEV_DEBUG: return "debug";
+ case OPT_LEV_RELEASE: return "release";
+ }
+ }
+
void SibsConfig::processObject(StringView name)
{
currentObject = name;