From: Pedro Alves <palves@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>, gdb-patches@sourceware.org
Subject: Re: [PATCH] [RFC] sim: testsuite: support @vars@ in flags
Date: Fri, 20 Nov 2015 15:36:00 -0000 [thread overview]
Message-ID: <564F3E10.1010002@redhat.com> (raw)
In-Reply-To: <1447138000-1961-1-git-send-email-vapier@gentoo.org>
On 11/10/2015 06:46 AM, Mike Frysinger wrote:
> Sometimes in tests, we need supplemental files like linker scripts or
> board helper files. There's no way to set those flags in the tests
> currently and relative paths don't work (breaks out of tree builds).
>
> Update the main option parser to replace some strings on the fly. Now
> tests can do things like:
> # ld: -T@srcdir@/@subdir@/sample.ld
>
> I'm not sure if there's any precedence for things like this in the tree.
Seems like ld's testsuite has something like that. At least, grepping
for "subdir" finds a ton of things like these, in .d files:
ld-d10v/reloc-005.d:2:#ld: -T $srcdir/$subdir/reloc-005.ld
ld-d10v/reloc-013.d:2:#ld: -T $srcdir/$subdir/reloc-013.ld
ld-d10v/reloc-014.d:2:#ld: -T $srcdir/$subdir/reloc-014.ld
ld-d10v/reloc-006.d:2:#ld: -T $srcdir/$subdir/reloc-006.ld
I can't find where the magic $srcdir and $subdir are expanded. Maybe
that's just passed through a tcl eval somewhere, which expands the tcl
variables.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-11-20 15:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 6:46 Mike Frysinger
2015-11-20 15:36 ` Pedro Alves [this message]
2015-11-20 19:32 ` Mike Frysinger
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=564F3E10.1010002@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.org \
/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).