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 34cac5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION_MAJOR=0
VERSION_MINOR=9
VERSION_PATCH=2
VERSION_PATCH=3
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 34cac5d

Please sign in to comment.