mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Follow up Makefile changes for clang-format
as reported on various OS, these changes help portability closes https://github.com/official-stockfish/Stockfish/pull/4844 No functional change.
This commit is contained in:
parent
cf3dbcb5ac
commit
49ece9f791
1 changed files with 4 additions and 3 deletions
|
@ -153,7 +153,7 @@ dotprod = no
|
||||||
arm_version = 0
|
arm_version = 0
|
||||||
STRIP = strip
|
STRIP = strip
|
||||||
|
|
||||||
ifneq ($(shell command -v clang-format-17),)
|
ifneq ($(shell which clang-format-17 2> /dev/null),)
|
||||||
CLANG-FORMAT = clang-format-17
|
CLANG-FORMAT = clang-format-17
|
||||||
else
|
else
|
||||||
CLANG-FORMAT = clang-format
|
CLANG-FORMAT = clang-format
|
||||||
|
@ -854,7 +854,8 @@ endif
|
||||||
objclean profileclean config-sanity \
|
objclean profileclean config-sanity \
|
||||||
icx-profile-use icx-profile-make \
|
icx-profile-use icx-profile-make \
|
||||||
gcc-profile-use gcc-profile-make \
|
gcc-profile-use gcc-profile-make \
|
||||||
clang-profile-use clang-profile-make FORCE
|
clang-profile-use clang-profile-make FORCE \
|
||||||
|
format analyze
|
||||||
|
|
||||||
analyze: net config-sanity objclean
|
analyze: net config-sanity objclean
|
||||||
$(MAKE) -k ARCH=$(ARCH) COMP=$(COMP) $(OBJS)
|
$(MAKE) -k ARCH=$(ARCH) COMP=$(COMP) $(OBJS)
|
||||||
|
@ -951,7 +952,7 @@ net: netvariables
|
||||||
fi; \
|
fi; \
|
||||||
|
|
||||||
format:
|
format:
|
||||||
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file:../.clang-format
|
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file
|
||||||
|
|
||||||
# default target
|
# default target
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue