Skip to content

Commit 49ece9f

Browse files
vondeleDisservin
authored andcommitted
Follow up Makefile changes for clang-format
as reported on various OS, these changes help portability closes #4844 No functional change.
1 parent cf3dbcb commit 49ece9f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ dotprod = no
153153
arm_version = 0
154154
STRIP = strip
155155

156-
ifneq ($(shell command -v clang-format-17),)
156+
ifneq ($(shell which clang-format-17 2> /dev/null),)
157157
CLANG-FORMAT = clang-format-17
158158
else
159159
CLANG-FORMAT = clang-format
@@ -854,7 +854,8 @@ endif
854854
objclean profileclean config-sanity \
855855
icx-profile-use icx-profile-make \
856856
gcc-profile-use gcc-profile-make \
857-
clang-profile-use clang-profile-make FORCE
857+
clang-profile-use clang-profile-make FORCE \
858+
format analyze
858859

859860
analyze: net config-sanity objclean
860861
$(MAKE) -k ARCH=$(ARCH) COMP=$(COMP) $(OBJS)
@@ -951,7 +952,7 @@ net: netvariables
951952
fi; \
952953

953954
format:
954-
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file:../.clang-format
955+
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file
955956

956957
# default target
957958
default:

0 commit comments

Comments
 (0)