Skip to content

Commit

Permalink
Follow up Makefile changes for clang-format
Browse files Browse the repository at this point in the history
as reported on various OS, these changes help portability

closes #4844

No functional change.
  • Loading branch information
vondele authored and Disservin committed Oct 23, 2023
1 parent cf3dbcb commit 49ece9f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ dotprod = no
arm_version = 0
STRIP = strip

ifneq ($(shell command -v clang-format-17),)
ifneq ($(shell which clang-format-17 2> /dev/null),)
CLANG-FORMAT = clang-format-17
else
CLANG-FORMAT = clang-format
Expand Down Expand Up @@ -854,7 +854,8 @@ endif
objclean profileclean config-sanity \
icx-profile-use icx-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
$(MAKE) -k ARCH=$(ARCH) COMP=$(COMP) $(OBJS)
Expand Down Expand Up @@ -951,7 +952,7 @@ net: netvariables
fi; \

format:
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file:../.clang-format
$(CLANG-FORMAT) -i $(SRCS) $(HEADERS) -style=file

# default target
default:
Expand Down

0 comments on commit 49ece9f

Please sign in to comment.