Skip to content

Commit 8b99260

Browse files
vchuravyKristofferC
authored andcommitted
Fix visibility of assert on GCC12/13
(cherry picked from commit 28720ff)
1 parent a8eabb7 commit 8b99260

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/julia_assert.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// Files that need `assert` should include this file after all other includes.
1111
// All files should also check `JL_NDEBUG` instead of `NDEBUG`.
1212

13+
#pragma GCC visibility push(default)
1314
#ifdef NDEBUG
1415
# ifndef JL_NDEBUG
1516
# undef NDEBUG
@@ -28,3 +29,4 @@
2829
# include <assert.h>
2930
# endif
3031
#endif
32+
#pragma GCC visibility pop

0 commit comments

Comments
 (0)