From 2d5bc81866affe7a625da96161644d17c50cf675 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sat, 24 Mar 2018 18:15:46 +0100 Subject: [PATCH] Makefile: Fix redirect to stderr to be more portable `>/dev/stderr` does not work in some environments. Moreover, all POSIX compliant shells supports standard `>&2` for redirect stdout to stderr. Upstream-Issue: https://github.com/crystal-lang/crystal/pull/5859 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2aa2e4f..a034f44 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ CXXFLAGS += $(if $(debug),-g -O0) ifeq (${LLVM_CONFIG},) $(error Could not locate llvm-config, make sure it is installed and in your PATH, or set LLVM_CONFIG) else - $(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >/dev/stderr) + $(shell echo $(shell printf '\033[33m')Using $(LLVM_CONFIG) [version=$(shell $(LLVM_CONFIG) --version)]$(shell printf '\033[0m') >&2) endif .PHONY: all -- 2.10.1 (Apple Git-78)