From 6b0082dd68a543d0051dbd5a3399d1cd3d4126d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 23 Sep 2018 19:43:00 +0200 Subject: [PATCH] Display warning: reproducible builds do not work on Windows or macos --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c0e7cfe..d6df3d1 100644 --- a/Makefile +++ b/Makefile @@ -595,7 +595,17 @@ ${bld}/test_pass/noemu_reproducible_build: ${os_filename} ${bld}/os.hex_with_off # Check that the second build produced the same file. if ! diff ${os_filename} ${reproducible_os_filename}; then \ diff ${bld}/os.hex_with_offsets ${bld}/reproducible/os.hex_with_offsets || true; \ - exit 1; \ + if test "$$(uname -s)" = Darwin -o "$$(uname -o)" = "Cygwin"; then \ + for i in `seq 5`; do \ + printf '\033[1;31m########################################################\033[m'; \ + done; \ + echo "REPRODUCIBLE BUILDS ARE UNSUPPORTED ON MACOS AND WINDOWS"; \ + for i in `seq 5`; do \ + printf '\033[1;31m########################################################\033[m'; \ + done; \ + else \ + exit 1; \ + fi; \ fi unset MAKEFLAGS MAKELEVEL MAKE_TERMERR MFLAGS; \ make OS_FILENAME=${reproducible_os_filename} \