mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
Merge branch 'asan-cygwin-build-fix' into 'main'
glib-private: fix build under Cygwin See merge request GNOME/glib!4150
This commit is contained in:
commit
a7da10fea8
@ -57,14 +57,14 @@
|
|||||||
/* If GLib itself is not compiled with ASAN sanitizer we may still want to
|
/* If GLib itself is not compiled with ASAN sanitizer we may still want to
|
||||||
* control it in case it's linked by the loading application, so we need to
|
* control it in case it's linked by the loading application, so we need to
|
||||||
* do this check dynamically.
|
* do this check dynamically.
|
||||||
* However MinGW doesn't support weak attribute properly (even if it advertises
|
* However MinGW/Cygwin doesn't support weak attribute properly (even if it advertises
|
||||||
* it), so we ignore it in such case since it's not convenient to go through
|
* it), so we ignore it in such case since it's not convenient to go through
|
||||||
* dlsym().
|
* dlsym().
|
||||||
* Under MSVC we could use alternatename, but it doesn't seem to be as reliable
|
* Under MSVC we could use alternatename, but it doesn't seem to be as reliable
|
||||||
* as we'd like: https://stackoverflow.com/a/11529277/210151 and
|
* as we'd like: https://stackoverflow.com/a/11529277/210151 and
|
||||||
* https://devblogs.microsoft.com/oldnewthing/20200731-00/?p=104024
|
* https://devblogs.microsoft.com/oldnewthing/20200731-00/?p=104024
|
||||||
*/
|
*/
|
||||||
#elif defined (G_OS_UNIX) && !defined (__APPLE__) && g_macro__has_attribute (weak)
|
#elif defined (G_OS_UNIX) && !defined (__APPLE__) && !defined(__CYGWIN__) && g_macro__has_attribute (weak)
|
||||||
|
|
||||||
#define HAS_DYNAMIC_ASAN_LOADING
|
#define HAS_DYNAMIC_ASAN_LOADING
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user