Add sanitize build support

This commit is contained in:
seelabs
2016-01-08 10:14:49 -05:00
committed by Edward Hennis
parent 796ee8e3de
commit 8f74ee1d96
2 changed files with 31 additions and 1 deletions

View File

@@ -41,9 +41,21 @@ char const* getRawVersionString ()
//
// http://semver.org/
//
#if defined(DEBUG) || defined(SANITIZER)
"+"
#ifdef DEBUG
"+DEBUG"
"DEBUG"
#ifdef SANITIZER
"."
#endif
#endif
#ifdef SANITIZER
BEAST_PP_STR1_(SANITIZER)
#endif
#endif
//--------------------------------------------------------------------------
;