Skip to content

Commit

Permalink
Merge pull request #18177 from JuliaLang/tb/flisp_asan
Browse files Browse the repository at this point in the history
ASAN: disable leak detection for flisp.
  • Loading branch information
maleadt authored Aug 23, 2016
2 parents d14155b + c50e845 commit 2826047
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/flisp/flmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
extern "C" {
#endif

#if defined(__has_feature)
#if __has_feature(address_sanitizer)
const char* __asan_default_options() {
return "detect_leaks=0";
}
#endif
#endif

static value_t argv_list(fl_context_t *fl_ctx, int argc, char *argv[])
{
int i;
Expand Down
1 change: 1 addition & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ JL_DLLEXPORT const char* __asan_default_options() {
return "allow_user_segv_handler=1:detect_leaks=0";
// FIXME: enable LSAN after fixing leaks & defining __lsan_default_suppressions(),
// or defining __lsan_default_options = exitcode=0 once publicly available
// (here and in flisp/flmain.c)
}
#endif

Expand Down

0 comments on commit 2826047

Please sign in to comment.