Skip to content

Commit

Permalink
Add version number to uci id
Browse files Browse the repository at this point in the history
  • Loading branch information
spinojara committed Apr 29, 2024
1 parent 845431d commit 3e38577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ obj/texel-%.o: src/%.c dep/%.d
src/nnueweights.c: weightbit Makefile
./weightbit $(NNUE)

genbit: LDLIBS += -pthread
%.so: LDFLAGS += -shared
genbit: LDLIBS += -pthread
%.so: LDFLAGS += -shared

obj/genbit.o: CFLAGS += $(DSYZYGY) -pthread
obj/init.o: CFLAGS += -DVERSION=$(VERSION)
obj/genbit.o: CFLAGS += $(DSYZYGY) -pthread
obj/init.o obj/interface.o: CFLAGS += -DVERSION=$(VERSION)
obj/interface.o obj/option.o: CFLAGS += -DTT=$(TT)

dep/nnueweights.d:
Expand Down
2 changes: 1 addition & 1 deletion src/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ int interface_isready(int argc, char **argv) {
int interface_uci(int argc, char **argv) {
UNUSED(argc);
UNUSED(argv);
printf("id name bitbit\n");
printf("id name bitbit " XSTR(VERSION) "\n");
printf("id author Isak Ellmer\n");
print_options();
printf("uciok\n");
Expand Down

0 comments on commit 3e38577

Please sign in to comment.