Update Makefile

This commit is contained in:
dermagen 2024-08-08 00:37:02 -04:00 committed by GitHub
parent e0ea89d06f
commit 04c59f51f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,12 +38,19 @@ else
ifneq ($(filter arm%,$(UNAME)),)
ARCH = ARM
endif
ifeq ($(UNAME),riscv64)
ARCH = RV64
endif
endif
ifeq ($(ARCH),AMD64)
$(info x86_64 architecture is detected)
CFLAGS += -D NAN_BOXING
endif
ifeq ($(ARCH),RV64)
$(info RISCV_64 architecture is detected)
CFLAGS += -D NAN_BOXING
endif
.PHONY: all clean realclean test install uninstall