mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
Merge branch 'backport-2293-msvc-analyser-fix-glib-2-70' into 'glib-2-70'
Backport !2293 “glib-private: Fix MSVC build with AddressSanitizer” to glib-2-70 See merge request GNOME/glib!2301
This commit is contained in:
@@ -23,8 +23,14 @@
|
|||||||
#include "gstdioprivate.h"
|
#include "gstdioprivate.h"
|
||||||
|
|
||||||
/* gcc defines __SANITIZE_ADDRESS__, clang sets the address_sanitizer
|
/* gcc defines __SANITIZE_ADDRESS__, clang sets the address_sanitizer
|
||||||
* feature flag */
|
* feature flag.
|
||||||
#if defined(__SANITIZE_ADDRESS__) || g_macro__has_feature(address_sanitizer)
|
*
|
||||||
|
* MSVC defines __SANITIZE_ADDRESS__ as well when AddressSanitizer
|
||||||
|
* is enabled but __lsan_ignore_object() equivalent method is not supported
|
||||||
|
* See also
|
||||||
|
* https://docs.microsoft.com/en-us/cpp/sanitizers/asan-building?view=msvc-160
|
||||||
|
*/
|
||||||
|
#if !defined(_MSC_VER) && (defined(__SANITIZE_ADDRESS__) || g_macro__has_feature(address_sanitizer))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* %_GLIB_ADDRESS_SANITIZER:
|
* %_GLIB_ADDRESS_SANITIZER:
|
||||||
|
Reference in New Issue
Block a user