Skip to content

Commit

Permalink
Adapt to latest nodejs-shared (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 ec84552
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hnode/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ LDFLAGS += -lnode
CFLAGS += $(shell $(PKG_CONFIG) --cflags libuv)
LDFLAGS += $(shell $(PKG_CONFIG) --libs libuv)

ifeq ($(CXX), g++)
MAJOR = $(shell g++ -dumpfullversion | cut -d. -f1)
$(info $(MAJOR))
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 ec84552

Please sign in to comment.