mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Erase the temp dir before starting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f067a23356
commit
4c3fa43392
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include "llvm/CompilerDriver/BuiltinOptions.h"
|
#include "llvm/CompilerDriver/BuiltinOptions.h"
|
||||||
#include "llvm/CompilerDriver/ForceLinkage.h"
|
#include "llvm/CompilerDriver/ForceLinkage.h"
|
||||||
|
#include "llvm/System/Path.h"
|
||||||
|
|
||||||
namespace llvmc {
|
namespace llvmc {
|
||||||
int Main(int argc, char** argv);
|
int Main(int argc, char** argv);
|
||||||
@ -24,8 +25,14 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
// HACK
|
// HACK
|
||||||
SaveTemps.setHiddenFlag(llvm::cl::Hidden);
|
SaveTemps.setHiddenFlag(llvm::cl::Hidden);
|
||||||
|
SaveTemps = SaveTempsEnum::Unset;
|
||||||
TempDirname = "tmp-objs";
|
TempDirname = "tmp-objs";
|
||||||
|
|
||||||
|
// Remove the temp dir if already exists.
|
||||||
|
llvm::sys::Path tempDir;
|
||||||
|
tempDir = TempDirname;
|
||||||
|
tempDir.eraseFromDisk(true);
|
||||||
|
|
||||||
llvmc::ForceLinkage();
|
llvmc::ForceLinkage();
|
||||||
return llvmc::Main(argc, argv);
|
return llvmc::Main(argc, argv);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user