[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8621: build-aux/compile: avoid race condition failure
From: |
Eric Blake |
Subject: |
bug#8621: build-aux/compile: avoid race condition failure |
Date: |
Thu, 05 May 2011 13:27:53 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 |
On 05/05/2011 01:06 PM, Peter Rosin wrote:
> Den 2011-05-05 16:53 skrev Jim Meyering:
>> Is there any reason not to make the compile script
>> accommodate (in a race-free manner) situations like
>> the one described in http://debbugs.gnu.org/8616 ?
>
> Yes, I can think of a couple. When the compile script
> is used to wrap MSVC (aka cl.exe), I think the generated
> debug info will point to the actual source file, and if
> the source file used to build the executable is gone when
> it's time to debug it will be a less than stellar
> experience. I imagine this problem to exist for other
> toolchains as well? It's also currently not very easy to
> override LN_S and MSVC does not understand the symlinks
> generated by Cygwin, so symlinking is not a favorite (at
> least not for the case where Cygwin is used to drive a
> MSVC build).
Is that true even in the face of #line directives? That is, instead of
linking the file, could you create a temporary file that has appropriate
directives prepended to the content of the original file so that debug
information tracks back to the original file name but where the
compilation to -o is still independent of the original file?
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature