Skip to content

Commit 4115947

Browse files
committed
Don't use /dev/stderr as it makes msys sad.
1 parent 2f1dcd7 commit 4115947

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/ab.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ define newline
7070
endef
7171

7272
define check_for_command
73-
$(shell command -v $1 >/dev/null || (echo "Required command '$1' missing" >/dev/stderr && kill $$PPID))
73+
$(shell command -v $1 >/dev/null || (echo "Required command '$1' missing" >&2 && kill $$PPID))
7474
endef
7575

7676
$(call check_for_command,ninja)
@@ -91,8 +91,8 @@ ignored-variables = MAKE_RESTARTS .VARIABLES MAKECMDGOALS MAKEFLAGS MFLAGS PAGER
9191
$(shell mkdir -p $(OBJ))
9292
$(file >$(OBJ)/newvars.txt,$(foreach v,$(filter-out $(ignored-variables),$(.VARIABLES)),$(v)=$($(v))$(newline)))
9393
$(shell touch $(OBJ)/vars.txt)
94-
$(shell diff -u $(OBJ)/vars.txt $(OBJ)/newvars.txt > /dev/stderr)
95-
$(shell cmp -s $(OBJ)/newvars.txt $(OBJ)/vars.txt || (rm -f $(OBJ)/build.ninja && echo "Environment changed --- regenerating" > /dev/stderr))
94+
$(shell diff -u $(OBJ)/vars.txt $(OBJ)/newvars.txt >&2)
95+
$(shell cmp -s $(OBJ)/newvars.txt $(OBJ)/vars.txt || (rm -f $(OBJ)/build.ninja && echo "Environment changed --- regenerating" >&2))
9696
$(shell mv $(OBJ)/newvars.txt $(OBJ)/vars.txt)
9797

9898
.PHONY: update-ab

0 commit comments

Comments
 (0)