mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
glib: Disable dynamic asan loading on macOS
The weak symbol resolution doesn’t seem to work (see https://gitlab.gnome.org/GNOME/glib/-/jobs/3265405): ``` Undefined symbols for architecture x86_64: "___lsan_enable", referenced from: _g_leak_sanitizer_is_supported in gutils.c.o "___lsan_ignore_object", referenced from: _g_ignore_leak in gquark.c.o _g_ignore_leak in gthreadpool.c.o _g_ignore_leak in gutils.c.o _g_leak_sanitizer_is_supported in gutils.c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` See !3672 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
parent
5ff31ae57d
commit
3b4846611d
@ -53,7 +53,7 @@
|
||||
* as we'd like: https://stackoverflow.com/a/11529277/210151 and
|
||||
* https://devblogs.microsoft.com/oldnewthing/20200731-00/?p=104024
|
||||
*/
|
||||
#elif defined (G_OS_UNIX) && g_macro__has_attribute (weak)
|
||||
#elif defined (G_OS_UNIX) && !defined (__APPLE__) && g_macro__has_attribute (weak)
|
||||
|
||||
#define HAS_DYNAMIC_ASAN_LOADING
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user