Skip to content

Commit 28720ff

Browse files
committed
Fix visibility of assert on GCC12/13
1 parent 5c070f4 commit 28720ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/julia_assert.h

+2
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)