gcc flag fun

This commit is contained in:
2025-05-22 22:11:47 -04:00
parent 27f33d96de
commit 4530b45cca

View File

@@ -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