Skip to content

Commit

Permalink
Fix visibility of assert on GCC12/13
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 12, 2023
1 parent 5c070f4 commit 28720ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/julia_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// Files that need `assert` should include this file after all other includes.
// All files should also check `JL_NDEBUG` instead of `NDEBUG`.

#pragma GCC visibility push(default)
#ifdef NDEBUG
# ifndef JL_NDEBUG
# undef NDEBUG
Expand All @@ -28,3 +29,4 @@
# include <assert.h>
# endif
#endif
#pragma GCC visibility pop

0 comments on commit 28720ff

Please sign in to comment.