This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite]: Fix detection of -j make argument
- From: Jeff Law <law at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Cc: Jonathan Wakely <jwakely at redhat dot com>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Tue, 22 Nov 2016 08:09:07 -0700
- Subject: Re: [PATCH, testsuite]: Fix detection of -j make argument
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4bk9HLkQtAqkOtVpyHwUuJCjb7y43EsX54szSP048x6sw@mail.gmail.com>
On 11/22/2016 05:25 AM, Uros Bizjak wrote:
Hello!
New makes (e.g. GNU Make 4.2.1) pass -j argument in MFLAGS is a
different way. While older makes pass only "-j", newer makes pass e.g.
"-j4" when -j is specified on the command line. The detection of "-j"
make argument doesn't work in the later case.
Attached patch reworks this functionality to detect -j correctly in all cases.
gcc/ChangeLog
2016-11-22 Uros Bizjak <ubizjak@gmail.com>
* Makefile.in ($(lang_checks_parallelized)): Fix detection
of -j argument.
gcc/ada/ChangeLog
2016-11-22 Uros Bizjak <ubizjak@gmail.com>
* gcc-interface/Make-lang.in (check-acats): Fix detection
of -j argument.
libstdc++-v3/ChangeLog
2016-11-22 Uros Bizjak <ubizjak@gmail.com>
* testsuite/Makefile.am
(check-DEJAGNU $(check_DEJAGNU_normal_targets)):Fix detection
of -j argument.
* testsuite/Makefile.in: Regenereate.
Patch was bootstrapped and regression tested on x86_64-linux-gnu with
"GNU Make 4.2.1" and "GNU Make 3.81". Ada was not checked, but the
change is consistent with other changes.
OK for mainline SVN and release branches?
OK on the rest of the bits, for the trunk and any release branches.
jeff