Skip to content

Commit aa8b457

Browse files
authored
Merge pull request #477 from J08nY/fix/makefile-echo
Fix clang detection when cross-compiling.
2 parents fe382af + f01cc5d commit aa8b457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefile_include.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ifeq ($(PLATFORM),FreeBSD)
2626
# XXX: FreeBSD needs extra escaping for some reason
2727
CSTR := $$$(CSTR)
2828
endif
29-
ifneq (,$(shell echo $(CSTR) | $(CC) -E - | grep CLANG))
29+
ifneq (,$(shell printf $(CSTR) | $(CC) -E - | grep CLANG))
3030
CC := $(CROSS_COMPILE)clang
3131
else
3232
CC := $(CROSS_COMPILE)gcc

0 commit comments

Comments
 (0)