From 63a44cc82a71fe39010a2a0e58b6b2ca601e98ee Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Mon, 21 Oct 2024 13:27:38 +0200 Subject: [PATCH 1/2] Use C++20 in hnode --- hnode/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/hnode/Makefile b/hnode/Makefile index 3b92569..d284e61 100644 --- a/hnode/Makefile +++ b/hnode/Makefile @@ -1,6 +1,7 @@ ROOT := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) include $(ROOT)/../build/common.makefile +CFLAGS += -std=c++20 # nodejs >= 23.0.0 requires C++20 CFLAGS += -I/usr/include/node LDFLAGS += -lnode From ec62fd2dd5969a6ef485f54135f348dd4c1bb952 Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Mon, 21 Oct 2024 13:37:17 +0200 Subject: [PATCH 2/2] Bump hnode's default data rlimit (to 1GiB) --- hnode/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hnode/main.cpp b/hnode/main.cpp index 3d0617d..95cab2e 100644 --- a/hnode/main.cpp +++ b/hnode/main.cpp @@ -4,7 +4,7 @@ #include #define RLIMIT_DEFAULT_CPU (1<<2) -#define RLIMIT_DEFAULT_DATA (1<<26) +#define RLIMIT_DEFAULT_DATA (1<<30) #define RLIMIT_DEFAULT_NOFILE (1<<5) #define RLIMIT_DEFAULT_NPROC (1<<11) #define RLIMIT_DEFAULT_RSS (1<<28)