We should append the outfile name to the path.
This commit is contained in:
parent
6c51340d51
commit
a9b71bb973
@ -62,6 +62,7 @@ namespace cling {
|
||||
llvm::sys::fs::make_absolute(TempPath);
|
||||
assert(llvm::sys::fs::is_directory(TempPath.str()) && "Must be a folder.");
|
||||
// Create a temporary file.
|
||||
llvm::sys::path::append(TempPath, OutFile);
|
||||
TempPath += "-%%%%%%%%";
|
||||
int fd;
|
||||
if (llvm::sys::fs::createUniqueFile(TempPath.str(), fd, TempPath)
|
||||
|
Loading…
Reference in New Issue
Block a user