Skip to content

Commit

Permalink
gcc needs default_options to be exported
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Dec 16, 2024
1 parent bc76dd9 commit 5e1ceff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ main(int argc, char **argv)
/* 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
* settings */
RUBY_SYMBOL_EXPORT_BEGIN
const char *
__asan_default_options(void)
{
return "use_sigaltstack=0:detect_leaks=0";
}
RUBY_SYMBOL_EXPORT_END
#endif

0 comments on commit 5e1ceff

Please sign in to comment.