Enable ASAN option in Travis build

This commit is contained in:
Janek Bevendorff
2017-03-14 14:53:29 +01:00
parent 504bd40263
commit 2587bac300
3 changed files with 10 additions and 6 deletions

View File

@@ -28,7 +28,7 @@
#include "gui/MainWindow.h"
#include "gui/MessageBox.h"
#ifdef WITH_ASAN
#if defined(WITH_ASAN) && defined(WITH_LSAN)
#include <sanitizer/lsan_interface.h>
#endif
@@ -137,7 +137,7 @@ int main(int argc, char** argv)
int exitCode = app.exec();
#ifdef WITH_ASAN
#if defined(WITH_ASAN) && defined(WITH_LSAN)
// do leak check here to prevent massive tail of end-of-process leak errors from third-party libraries
__lsan_do_leak_check();
__lsan_disable();