aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-24 03:23:50 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:32 +0200
commit25601fbac722b9af61ebaf69014e4b73517aaf94 (patch)
treea89ed3fe91e1aae153e832f1362c5765e064f533 /include
parent2cee880ef4ba9f4369b7e464eec87c4fec55d7fc (diff)
Add sanitize build/test option, currently ignored if gcc is not used
Diffstat (limited to 'include')
-rw-r--r--include/Conf.hpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp
index 6018b48..c8c22e1 100644
--- a/include/Conf.hpp
+++ b/include/Conf.hpp
@@ -213,7 +213,8 @@ namespace sibs
buildTests(_buildTests),
cVersion(CVersion::C11),
cppVersion(CPPVersion::CPP14),
- mainProject(false)
+ mainProject(false),
+ sanitize(false)
{
cmakeDirGlobal = projectPath;
cmakeDirStatic = cmakeDirGlobal;
@@ -388,6 +389,16 @@ namespace sibs
this->mainProject = mainProject;
}
+ bool getSanitize() const
+ {
+ return sanitize;
+ }
+
+ void setSanitize(bool sanitize)
+ {
+ this->sanitize = sanitize;
+ }
+
virtual bool isDefined(const std::string &name) const;
virtual bool define(const std::string &name, const std::string &value);
virtual const std::unordered_map<std::string, std::string>& getDefines() const;
@@ -440,6 +451,7 @@ namespace sibs
bool buildTests;
bool finishedProcessing;
bool mainProject;
+ bool sanitize;
};
class SibsTestConfig : public SibsConfig