Skip to content

Commit 9adbb92

Browse files
jirutkaRX14
authored andcommittedMar 24, 2018
Makefile: Fix redirect to stderr to be more portable (#5859)
`>/dev/stderr` does not work in some environments. Moreover, all POSIX compliant shells supports standard `>&2` for redirect stdout to stderr.
1 parent dedc726 commit 9adbb92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ CXXFLAGS += $(if $(debug),-g -O0)
5555
ifeq (${LLVM_CONFIG},)
5656
$(error Could not locate llvm-config, make sure it is installed and in your PATH, or set LLVM_CONFIG)
5757
else
58-
$(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >/dev/stderr)
58+
$(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >&2)
5959
endif
6060

6161
.PHONY: all

0 commit comments

Comments
 (0)
Please sign in to comment.