mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +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/ForceLinkage.h"
|
||||
#include "llvm/System/Path.h"
|
||||
|
||||
namespace llvmc {
|
||||
int Main(int argc, char** argv);
|
||||
@ -24,8 +25,14 @@ int main(int argc, char** argv) {
|
||||
|
||||
// HACK
|
||||
SaveTemps.setHiddenFlag(llvm::cl::Hidden);
|
||||
SaveTemps = SaveTempsEnum::Unset;
|
||||
TempDirname = "tmp-objs";
|
||||
|
||||
// Remove the temp dir if already exists.
|
||||
llvm::sys::Path tempDir;
|
||||
tempDir = TempDirname;
|
||||
tempDir.eraseFromDisk(true);
|
||||
|
||||
llvmc::ForceLinkage();
|
||||
return llvmc::Main(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user