From: Alan Modra <amodra@gmail.com>
To: Howard Chu <hyc@symas.com>
Cc: "Clément Chigot" <chigot@adacore.com>, binutils@sourceware.org
Subject: Re: [PATCH v2] ld/testsuite: don't output to /dev/null
Date: Tue, 21 Feb 2023 08:52:02 +1030 [thread overview]
Message-ID: <Y/PyioPJk0SgxsFW@squeak.grove.modra.org> (raw)
In-Reply-To: <1dc8fbc0-5742-2e53-1ddb-9c4d85b6be9e@symas.com>
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
next prev parent reply other threads:[~2023-02-20 22:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-20 14:43 Clément Chigot
2023-02-20 17:11 ` Howard Chu
2023-02-20 22:22 ` Alan Modra [this message]
2023-02-20 22:18 ` Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y/PyioPJk0SgxsFW@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=chigot@adacore.com \
--cc=hyc@symas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).