From 39b8fbc36a94ddf2522896b3653e4729e1223391 Mon Sep 17 00:00:00 2001 From: SzilBalazs Date: Thu, 17 Aug 2023 15:33:17 +0200 Subject: [PATCH] Trying to debug windows ci 12 Bench: 2134743 --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8bb6001..058838b 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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)"