Skip to content

Commit

Permalink
CRuby headers need -fdeclspec on system clang on macOS Mojave
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 26, 2023
1 parent 1af7965 commit 047f6bd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/c/cext-trampoline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ endif
# cc should be enough to compile this library but might produce different warnings based on the system compiler.
# If that is the case and fails the build, it might be better to use instead:
# CC := $(GRAALVM_TOOLCHAIN_CC)
CC := cc

# Same values as in RbConfig
ifeq ($(OS),Darwin)
CC := clang -fdeclspec
else
CC := gcc
endif

CFLAGS := -Wall -Werror -fPIC -std=c99 -g
LDFLAGS := -m64

Expand Down

0 comments on commit 047f6bd

Please sign in to comment.