Skip to content

Commit

Permalink
Make clang-format binary configurable. (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
aemseemann authored and slaff committed Oct 31, 2019
1 parent 1332a08 commit d936a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CS_FILES = $(call rwildcard,$(CS_DIRS:=/*),%.cpp %.h %.c)
cs: ##Apply coding style to all core files
$(if $(V),$(info Applying coding style to $(words $(CS_FILES)) files ...))
@for FILE in $(CS_FILES); do \
clang-format -i -style=file $$FILE; \
$(CLANG_FORMAT) -i -style=file $$FILE; \
done


Expand Down
7 changes: 7 additions & 0 deletions Sming/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,18 @@ TOOLS_BASE = $(SMING_HOME)/$(OUT_BASE)/tools
USER_LIBDIR = $(SMING_HOME)/$(OUT_BASE)/lib

# Git command
DEBUG_VARS += GIT
GIT ?= git

# CMake command
DEBUG_VARS += CMAKE
CMAKE ?= cmake

# clang-format command
DEBUG_VARS += CLANG_FORMAT
CLANG_FORMAT ?= clang-format



V ?= $(VERBOSE)
ifeq ("$(V)","1")
Expand Down

0 comments on commit d936a99

Please sign in to comment.