[PATCH v2] ld/testsuite: don't output to /dev/null

Alan Modra amodra@gmail.com
Mon Feb 20 22:22:02 GMT 2023


On Mon, Feb 20, 2023 at 05:11:47PM +0000, Howard Chu wrote:
> Clément Chigot via Binutils wrote:
> > Mingw doesn't have /dev/null and thus "-o /dev/null" will fail.
> > Currently, all the options are checked using this "-o /dev/null",
> > resulting in them being disabled on mingw hosts.
> > Fix that by outputting to a real file for all targets.
> 
> Unless you expect that saving the output will be useful, you could simply
> set the $fno variable to "nul:" when running on a Windows OS, and leave it
> set to "/dev/null" otherwise.

Yes you could do that too.  I think it's slightly better to run the
same command on all hosts, as it avoids the problem of getting the
host triple checking correct.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list