Skip to content

Commit aa0835f

Browse files
committed
Suppress -Wincompatible-pointer-types on macOS
Apple Clang 17+ (Xcode 26 / macOS 26) treats -Wincompatible-pointer-types as a hard error, which breaks compilation of mini_racer_extension.c due to the unsigned long vs uint64_t mismatch in the bigint serialization code. Add -Wno-incompatible-pointer-types to CFLAGS on Darwin as a workaround until the type mismatch is properly fixed in the extension source. Ref: #359 Ref: #361
1 parent 7cfa8fd commit aa0835f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ext/mini_racer_extension/extconf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
$CXXFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN
3434

35+
# Apple Clang 17+ (Xcode 26+) treats -Wincompatible-pointer-types as an error;
36+
# suppress it until the `unsigned long` vs `uint64_t` mismatch in the extension
37+
# is properly fixed.
38+
$CFLAGS += " -Wno-incompatible-pointer-types" if IS_DARWIN
39+
3540
if IS_DARWIN
3641
$LDFLAGS.insert(0, " -stdlib=libc++ ")
3742
else

0 commit comments

Comments
 (0)