mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
Do not try luck by using given name to create temporary file. In parallel builds it may not work.
This time for .s file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bbe0b440e
commit
9267d140de
@ -184,7 +184,7 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
|
||||
{
|
||||
// make unique temp .s file to put generated assembly code
|
||||
sys::Path uniqueAsmPath("lto-llvm.s");
|
||||
if ( uniqueAsmPath.createTemporaryFileOnDisk(true, &errMsg) )
|
||||
if ( uniqueAsmPath.createTemporaryFileOnDisk(false, &errMsg) )
|
||||
return NULL;
|
||||
sys::RemoveFileOnSignal(uniqueAsmPath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user