Skip to content

Commit

Permalink
Fix windows compile 2
Browse files Browse the repository at this point in the history
Bench: 3366289
  • Loading branch information
SzilBalazs committed Jul 29, 2023
1 parent 6e77d3b commit 9269291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ARCH = native
NAME = WhiteCore
VERSION_MAJOR = 0
VERSION_MINOR = 2
CPP_FILES = src/main.cpp

ifneq ($(wildcard .git/*),)
HASH := $(shell git rev-parse --short HEAD)
Expand All @@ -23,6 +24,7 @@ endif

ifeq ($(uname_S), Windows)
SUFFIX = .exe
CPP_FILES += src/corenet.cpp
CP = powershell cp
else
CP = cp
Expand Down Expand Up @@ -92,7 +94,7 @@ ifeq ($(uname_S), Windows)
@./$(INCBIN_TOOL) src/network/nnue.h -o src/corenet.cpp
endif
@echo Compiling $(NAME)
@$(CXX) $(TARGET_FLAGS) $(CXXFLAGS) -o $@ src/main.cpp
@$(CXX) $(TARGET_FLAGS) $(CXXFLAGS) -o $@ $(CPP_FILES)
@echo Build has finished.
@rm $(TMP_EVALFILE)

Expand Down

0 comments on commit 9269291

Please sign in to comment.