mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +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. llvm-svn: 121016
This commit is contained in:
parent
3e954d16f4
commit
a4d6774cf8
@ -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…
x
Reference in New Issue
Block a user