Skip to content

Commit 59a9c8a

Browse files
committed
backport crc32 mac fix
1 parent 6782262 commit 59a9c8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/standard/crc32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ static inline int has_crc32_insn(void) {
6868
# if!defined(__clang__)
6969
# pragma GCC push_options
7070
# pragma GCC target ("+nothing+crc")
71+
# elif defined(__APPLE__)
72+
# pragma clang attribute push(__attribute__((target("crc"))), apply_to=function)
7173
# else
7274
# pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
7375
# endif

0 commit comments

Comments
 (0)