From 4530b45ccaae9bfc6db870ab43d47154e3ccf9d2 Mon Sep 17 00:00:00 2001 From: Andrew Kloet Date: Thu, 22 May 2025 22:11:47 -0400 Subject: [PATCH] gcc flag fun --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 78e859c..75fdb17 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Compiler and flags CXX = g++ -CXXFLAGS = -std=c++17 -Wall -Wextra -O3 -LDFLAGS = -lncurses -ltinfo +CXXFLAGS = -std=c++17 -Wall -Wextra -O3 --function-sections -fdata-sections -flto -march=native -ffast-math +LDFLAGS = -lncurses -ltinfo -Wl,--gc-sections -flto -Wl,-O2 # Directories SRC_DIR = src