From 25601fbac722b9af61ebaf69014e4b73517aaf94 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 24 May 2018 03:23:50 +0200 Subject: Add sanitize build/test option, currently ignored if gcc is not used --- include/Conf.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') 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& getDefines() const; @@ -440,6 +451,7 @@ namespace sibs bool buildTests; bool finishedProcessing; bool mainProject; + bool sanitize; }; class SibsTestConfig : public SibsConfig -- cgit v1.2.3