diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-09-04 00:45:20 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-09-17 12:28:55 +0300 |
commit | f604280812d44146ce1a1c8c1ae92a062c286274 (patch) | |
tree | 2ea08847fc2442fd91caa453183c9fbc3d329fcf /render-test | |
parent | 83a019d021ccac037af677d6a0d19065d1e61c8a (diff) | |
download | qtlocation-mapboxgl-f604280812d44146ce1a1c8c1ae92a062c286274.tar.gz |
[build] Do not override new/delete on render-test for sanitize builds
Sanitizers will also do the same and it will conflict.
Diffstat (limited to 'render-test')
-rw-r--r-- | render-test/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render-test/main.cpp b/render-test/main.cpp index 3ab48fe5b2..fcdbe3ab55 100644 --- a/render-test/main.cpp +++ b/render-test/main.cpp @@ -19,6 +19,7 @@ #define ANSI_COLOR_LIGHT_GRAY "\x1b[90m" #define ANSI_COLOR_RESET "\x1b[0m" +#if !defined(SANITIZE) void* operator new(std::size_t sz) { void* ptr = AllocationIndex::allocate(sz); if (!ptr) throw std::bad_alloc{}; @@ -33,6 +34,7 @@ void operator delete(void* ptr) noexcept { void operator delete(void* ptr, size_t) noexcept { AllocationIndex::deallocate(ptr); } +#endif int main(int argc, char** argv) { bool recycleMap; |