diff options
author | Olivier Hainque <hainque@adacore.com> | 2017-11-28 14:23:36 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2017-11-28 14:23:36 +0000 |
commit | 73ff3db2f452c816fce0c14c6c40bc7df56ebf9f (patch) | |
tree | 3b6ad5b19d468492260b168b33334ce43a523904 /gcc | |
parent | 61cd19e6be197dbafa410e894f002a185256db30 (diff) | |
download | gcc-73ff3db2f452c816fce0c14c6c40bc7df56ebf9f.zip gcc-73ff3db2f452c816fce0c14c6c40bc7df56ebf9f.tar.gz gcc-73ff3db2f452c816fce0c14c6c40bc7df56ebf9f.tar.bz2 |
Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null on mingw build hosts.
2017-11-28 Olivier Hainque <hainque@adacore.com>
* Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null
on mingw build hosts.
From-SVN: r255200
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/Makefile.in | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 820a3dc..5835f87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-28 Olivier Hainque <hainque@adacore.com> + + * Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null + on mingw build hosts. + 2017-11-28 Jakub Jelinek <jakub@redhat.com> PR debug/81307 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index f821b00..0baa292 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1912,9 +1912,12 @@ rest.cross: specs # Specify -o /dev/null so the output of -S is discarded. More importantly # It does not try to create a file with the name "null.s" on POSIX and # "nul.s" on Windows. Because on Windows "nul" is a reserved file name. +# Beware that /dev/null is not available to mingw tools, so directly use +# "nul" instead of "/dev/null" if we're building on a mingw machine. # Specify the path to gcc/testsuite/selftests within the srcdir # as an argument to -fself-test. -SELFTEST_FLAGS = -nostdinc /dev/null -S -o /dev/null \ +DEVNULL=$(if $(findstring mingw,$(build)),nul,/dev/null) +SELFTEST_FLAGS = -nostdinc $(DEVNULL) -S -o $(DEVNULL) \ -fself-test=$(srcdir)/testsuite/selftests C_SELFTEST_FLAGS = -xc $(SELFTEST_FLAGS) |