From: "H.J. Lu" <hjl.tools@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Subject: Re: [PATCH 1/2] dso-ordering-test.py: Put all sources in one directory [BZ #28550]
Date: Mon, 8 Nov 2021 06:07:41 -0800 [thread overview]
Message-ID: <CAMe9rOoLWNbA9p3Gk7BKb466GmqA_mAFEQdzBbZ7XHErootQ3A@mail.gmail.com> (raw)
In-Reply-To: <8735o6kbed.fsf@oldenburg.str.redhat.com>
On Mon, Nov 8, 2021 at 5:46 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu via Libc-alpha:
>
> > Also use a temporary file to generate Makefile fragments for DSO sorting
> > tests.
>
> I don't see this part in the patch?
This is the leftover from the old changes.
> > diff --git a/scripts/dso-ordering-test.py b/scripts/dso-ordering-test.py
> > index 944ee74052..26497159a0 100644
> > --- a/scripts/dso-ordering-test.py
> > +++ b/scripts/dso-ordering-test.py
> > @@ -526,9 +526,13 @@ def process_testcase(t):
> > base_test_name = t.test_name
> > test_subdir = base_test_name + "-dir"
> > testpfx = objpfx + test_subdir + "/"
> > + test_srcdir = "dso-sort-tests-src/"
> > + testpfx_src = objpfx + test_srcdir
> >
> > if not os.path.exists(testpfx):
> > os.mkdir(testpfx)
> > + if not os.path.exists(testpfx_src):
> > + os.mkdir(testpfx_src)
> >
> > def find_objs_not_depended_on(t):
> > objs_not_depended_on = []
> > @@ -595,6 +599,11 @@ def process_testcase(t):
> > # Print out needed Makefile fragments for use in glibc/elf/Makefile.
> > module_names = ""
> > for o in test_descr.objs:
> > + rule = ("$(objpfx)" + test_subdir + "/" + test_name
> > + + "-" + o + ".os: $(objpfx)" + test_srcdir
> > + + test_name + "-" + o + ".c\n"
> > + "\t$(compile.c) $(OUTPUT_OPTION)\n")
> > + makefile.write (rule);
>
> Spurious semicolon at end of line (there are multiple such cases).
I will remove them.
> Why do you put the generated test sources into a separate subdirectory?
>
To avoid the default make rule:
$(objpfx)%$o: $(objpfx)%.c $(before-compile); $$(compile-command.c)
which causes the problem for parallel build.
--
H.J.
next prev parent reply other threads:[~2021-11-08 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 15:07 [PATCH 0/2] Update Makefile fragments for DSO sorting tests H.J. Lu
2021-11-07 15:07 ` [PATCH 1/2] dso-ordering-test.py: Put all sources in one directory [BZ #28550] H.J. Lu
2021-11-08 13:46 ` Florian Weimer
2021-11-08 14:07 ` H.J. Lu [this message]
2021-11-07 15:07 ` [PATCH 2/2] elf: Pre-generate Makefile fragments for DSO sorting tests " H.J. Lu
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=CAMe9rOoLWNbA9p3Gk7BKb466GmqA_mAFEQdzBbZ7XHErootQ3A@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.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).