Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ endif

C_SRC_NIF_FILE = $(C_SRC_NIF)$(C_SRC_SHARED_EXTENSION)

ifeq ($(PLATFORM),msys2)
ifneq (,$(and $(findstring nerves,$(CROSSCOMPILE)),$(findstring darwin,$(PLATFORM)),$(filter arm64,$(ARCH))))
CC = $(CROSSCOMPILE)-gcc
CFLAGS += -O3 -std=c11 -fstack-protector -Wall -Wmissing-prototypes
CXXFLAGS += -O3 -std=c++11 -fstack-protector -Wall
LDFLAGS += -shared
else ifeq ($(PLATFORM),msys2)
# We hardcode the compiler used on MSYS2. The default CC=cc does
# not produce working code. The "gcc" MSYS2 package also doesn't.
CC = /mingw64/bin/gcc
Expand Down
Loading