From 4c2e932d15b8cfa0cbdfe6a29fcc2d04feabdb16 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 10 Apr 2025 06:16:27 +0200 Subject: [PATCH] final touches on makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7b676d7..9d74e96 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,11 @@ OBJS := $(patsubst $(SRC_DIR)/%.cpp, $(OBJ_DIR)/%.o, $(SRCS)) # Final binary $(EXE)$(EXE_EXT): $(OBJS) - $(CXX) $(CXXFLAGS) -DEVALFILE=\"$(EVALFILE)\" $^ ./external/fmt/format.cc -o $@ -O3 -march=native -flto + $(CXX) $(CXXFLAGS) -DEVALFILE=\"$(EVALFILE)\" $^ ./external/fmt/format.cc -o $@ -O3 -fuse-ld=lld -march=native -flto -static # Compile .cpp -> .o $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR) - $(CXX) -std=c++20 -c -o $@ $< -O3 -march=native -flto + $(CXX) -std=c++20 -c -o $@ $< -O3 -march=native -fuse-ld=lld -flto -static # Create object directory $(OBJ_DIR):