Skip to content

Commit

Permalink
Trying to debug windows ci 12
Browse files Browse the repository at this point in the history
Bench: 2134743
  • Loading branch information
SzilBalazs committed Aug 17, 2023
1 parent dda2266 commit 39b8fbc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ else
endif

ifeq ($(uname_S), Windows)

ifeq ($(CXX), clang++)
USE_INCBIN_TOOL = true
endif

SUFFIX = .exe
CPP_FILES += src/corenet.cpp
CP = powershell cp
Expand Down Expand Up @@ -97,13 +102,13 @@ $(TMP_EVALFILE):
@$(CP) $(EVALFILE) $(TMP_EVALFILE)

$(INCBIN_TOOL): $(TMP_EVALFILE)
ifeq ($(uname_S), Windows)
ifeq ($(USE_INCBIN_TOOL), true)
@echo -e "$(C_CYAN)Compiling $(C_RED)$(INCBIN_TOOL)$(C_CYAN)...$(C_DEFAULT)"
@clang -o $@ src/external/incbin/incbin.c
endif

$(OUTPUT_BINARY): $(HEADERS) $(SOURCES) $(INCBIN_TOOL)
ifeq ($(uname_S), Windows)
ifeq ($(USE_INCBIN_TOOL), true)
@./$(INCBIN_TOOL) src/network/nnue.h -o src/corenet.cpp
endif
@echo -e "$(C_CYAN)Compiling $(C_WHITE)$(NAME)$(C_CYAN)...$(C_DEFAULT)"
Expand Down

0 comments on commit 39b8fbc

Please sign in to comment.