You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blink 1.0.0 fails to build on older versions of macOS using older versions of Apple Clang (older than 1001):
./blink/jit.h:270:10: error: address argument to atomic operation must be a pointer to non-const _Atomic type ('const _Atomic(bool) *' invalid)
return atomic_load_explicit(&jit->disabled, memory_order_acquire);
^ ~~~~~~~~~~~~~~
It seems that C11 defined this to be non-const, and C17 fixed it to be const, and Apple Clang 1001 and later will also allow it to be const even in C11 mode.
My suggested solutions are that you either cast away the constness so that you are actually compatible with all C11 compilers, or you indicate that you require a C17 compiler.
The text was updated successfully, but these errors were encountered:
blink 1.0.0 fails to build on older versions of macOS using older versions of Apple Clang (older than 1001):
I reported this to MacPorts as well.
There's more background in a similar PHP bug report.
It seems that C11 defined this to be non-
const
, and C17 fixed it to beconst
, and Apple Clang 1001 and later will also allow it to beconst
even in C11 mode.Your README says you support C11 compilers:
blink/README.md
Line 48 in a00feef
My suggested solutions are that you either cast away the
const
ness so that you are actually compatible with all C11 compilers, or you indicate that you require a C17 compiler.The text was updated successfully, but these errors were encountered: