Export __asan_default_options for GCC

Unlike Clang 15, GCC 11 seems require default symbol visibility.
This commit is contained in:
Alan Wu 2024-12-16 18:43:41 -05:00
parent 2102fe32ff
commit 2eee7a52e1

2
main.c
View File

@ -72,9 +72,11 @@ main(int argc, char **argv)
/* Compile in the ASAN options Ruby needs, rather than relying on environment variables, so /* Compile in the ASAN options Ruby needs, rather than relying on environment variables, so
* that even tests which fork ruby with a clean environment will run ASAN with the right * that even tests which fork ruby with a clean environment will run ASAN with the right
* settings */ * settings */
RUBY_SYMBOL_EXPORT_BEGIN
const char * const char *
__asan_default_options(void) __asan_default_options(void)
{ {
return "use_sigaltstack=0:detect_leaks=0"; return "use_sigaltstack=0:detect_leaks=0";
} }
RUBY_SYMBOL_EXPORT_END
#endif #endif