Make fix #49

Merged
rektdie merged 4 commits from make_fix into main 2025-04-10 06:18:06 +02:00
Showing only changes of commit a957e46bdc - Show all commits
+3 -3
View File
@@ -2,7 +2,7 @@
SRC_DIR := source SRC_DIR := source
OBJ_DIR := obj OBJ_DIR := obj
CXX ?= g++ CXX ?= clang++
EXE ?= Eleanor EXE ?= Eleanor
EVALFILE := ./nnue.bin EVALFILE := ./nnue.bin
@@ -26,11 +26,11 @@ OBJS := $(patsubst $(SRC_DIR)/%.cpp, $(OBJ_DIR)/%.o, $(SRCS))
# Final binary # Final binary
$(EXE)$(EXE_EXT): $(OBJS) $(EXE)$(EXE_EXT): $(OBJS)
$(CXX) $(CXXFLAGS) -DEVALFILE=\"$(EVALFILE)\" $^ ./external/fmt/format.cc -o $@ -O3 -lpthread -march=native -flto -ftree-vectorize $(CXX) $(CXXFLAGS) -DEVALFILE=\"$(EVALFILE)\" $^ ./external/fmt/format.cc -o $@ -O3 -march=native -fuse-ld=lld -flto
# Compile .cpp -> .o # Compile .cpp -> .o
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(CXX) -std=c++23 -c -o $@ $< -O3 -lpthread -march=native -flto -ftree-vectorize $(CXX) -std=c++23 -c -o $@ $< -O3 -march=native -fuse-ld=lld -flto
# Create object directory # Create object directory
$(OBJ_DIR): $(OBJ_DIR):