From 227fbb17f4db108ad70eab463f1cdad319b7878b Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Sat, 1 Aug 2026 05:26:52 +0800 Subject: [PATCH] build(libhttp): lower optimization to -O2 to avoid cc1plus OOM on low-memory machines --- libhttp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhttp/Makefile b/libhttp/Makefile index 3ab6242..3152312 100644 --- a/libhttp/Makefile +++ b/libhttp/Makefile @@ -6,7 +6,7 @@ INCLU_TDIR := /usr/include INCLU_SDIR := inc CPP := g++ INCS := -I inc -I/opt/homebrew/include -CPPFLAGS := --std=c++20 -O3 -pipe -Wall -Werror +CPPFLAGS := --std=c++20 -O2 -Wall -Werror LIBS := -L/opt/homebrew/lib -lssl -lcrypto -lcurl -lpthread BUILD_TDIR := build $(shell mkdir -p $(BUILD_TDIR))