This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Allow genmultilib to be reentrant
- From: Jason Merrill <jason at redhat dot com>
- To: Geoffrey Keating <gkeating at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 15:51:28 -0500
- Subject: Re: Allow genmultilib to be reentrant
- References: <200212170522.gBH5MTDJ004755@keatge.apple.com>
On Mon, 16 Dec 2002 21:22:29 -0800 (PST), Geoffrey Keating <gkeating@apple.com> wrote:
> 2002-12-16 Geoffrey Keating <geoffk@apple.com>
>
> * genmultilib: Create temporary files in unique subdirectory.
This breaks for me; I have CDPATH set, so "cd tmpmultilib.$$" prints out
the expanded path. Perhaps this is a bash bug, but this patch fixes the
problem. Applied to trunk.
2002-12-17 Jason Merrill <jason@redhat.com>
* genmultilib: Use 'cd ./foo'.
*** genmultilib.~1~ Tue Dec 17 01:23:19 2002
--- genmultilib Tue Dec 17 02:04:07 2002
*************** enable_multilib=$8
*** 121,127 ****
echo "static const char *const multilib_raw[] = {"
mkdir tmpmultilib.$$ || exit 1
! cd tmpmultilib.$$ || exit 1
# What we want to do is select all combinations of the sets in
# options. Each combination which includes a set of mutually
--- 121,128 ----
echo "static const char *const multilib_raw[] = {"
mkdir tmpmultilib.$$ || exit 1
! # Use cd ./foo to avoid CDPATH output.
! cd ./tmpmultilib.$$ || exit 1
# What we want to do is select all combinations of the sets in
# options. Each combination which includes a set of mutually