Commit Graph

5 Commits

Author SHA1 Message Date
Sergio Martins
4483c921ea ECM: Added MSVC sanitizer support
Written by me, will squash it once upstream has it.
There's some patches in review upstream.
2021-05-20 16:19:48 +01:00
Sergio Martins
e8732ecfc0 ECM: sync sanitizers with upstream 2021-05-20 16:19:06 +01:00
Allen Winter
1eb5392aef cmake/.../ECMEnableSanitizers.cmake - update from upstream 2020-08-10 16:27:55 -04:00
Sergio Martins
11576c5455 ECM: Only set the sanitizers for DEBUG config
ECMEnableSanitizers isn't being friendly of multi generators, like
-G "Ninja Multi-Config" and is messing with global flags which is a no-no.
Instead it should be using a dedicated custom config IMHO.

With this change only debug will get the sanitizers, so you can for instance
build with -DCMAKE_CONFIGURATION_TYPES=Debug;RelWithDebInfo and have Debug
hardeneded with the sanitizers while the RelWithDebInfo without sanitizers,
ideal for profiling.
2020-05-10 17:49:20 +01:00
Laurent Montel
a9b17aee02 Add ECMEnableSanitizers to allow to compile it with ASAN support
Change-Id: Ia2d9fc073d716e1ed9d525fdfdbf762bedc80e3b
Reviewed-on: https://codereview.kdab.com/67814
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-26 15:19:28 +02:00