Skip to content

Commit

Permalink
Adapt to latest nodejs (22.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed May 21, 2024
1 parent dd91ca1 commit 731ff08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hnode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ LDFLAGS += -lnode
CFLAGS += $(shell $(PKG_CONFIG) --cflags libuv)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libuv)

ifeq ($(CXX), g++)
MAJOR = $(shell g++ -dumpfullversion | cut -d. -f1)
ifeq ($(shell expr $(MAJOR) \>= 14), 1)
CFLAGS += -Wno-error=template-id-cdtor
endif
endif

EXE ?= hnode
SRC ?= main.cpp

Expand Down

0 comments on commit 731ff08

Please sign in to comment.