[llvm-commits] [llvm] r120860 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp

Michael Spencer bigcheesegs at gmail.com
Mon Dec 6 12:00:56 PST 2010


2010/12/6 Rafael Espíndola <rafael.espindola at gmail.com>:
>>>> Do not try luck by using given name to create temporary file. In parallel builds it may not work.
>>>
>>> Is this a bug in the Path API?  The documentation says
>>>
>>>      bool createTemporaryFileOnDisk(
>>>        bool reuse_current = false, ///< When set to true, this parameter
>>>          ///< indicates that if the current file name does not exist then
>>>          ///< it will be used without modification.
>>>
>>> So I would assume that if the name does exist a new one is created.
>>
>> After it is determine that name does not exit, but before the file with the name is created, someone else can also determine that name does not exit in a massively parallel build. "reuse_current = true" is not useful in parallel builds.
>
> I would call that a bug in the API :-)
>
> Michael, what about removing this feature from v2 if it cannot be
> reliably implemented?

The current design will not use a filename that already exists no
matter what. I don't get the point of this feature.

- Michael Spencer

>> -
>> Devang
>
> Cheers,
> Rafael
>




More information about the llvm-commits mailing list