aboutsummaryrefslogtreecommitdiff
path: root/lib/CompilerDriver/BuiltinOptions.cpp
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-09 08:23:38 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-07-09 08:23:38 +0000
commit0b8f418488c4eb46d793e7580fb76dd42c92ad7e (patch)
treee891a33352749890c575e88221de5da034610366 /lib/CompilerDriver/BuiltinOptions.cpp
parent549882d312031880a6b03d31ffdf3e3e61bdfb71 (diff)
Add a -t="dir" option to the driver. This can be used to specify the directory to be used as TempDir if somebody doesn't want to use the standard /tmp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/BuiltinOptions.cpp')
-rw-r--r--lib/CompilerDriver/BuiltinOptions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CompilerDriver/BuiltinOptions.cpp b/lib/CompilerDriver/BuiltinOptions.cpp
index a3364e8a72..c4660e17a5 100644
--- a/lib/CompilerDriver/BuiltinOptions.cpp
+++ b/lib/CompilerDriver/BuiltinOptions.cpp
@@ -25,6 +25,8 @@ cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input file>"),
cl::ZeroOrMore);
cl::opt<std::string> OutputFilename("o", cl::desc("Output file name"),
cl::value_desc("file"), cl::Prefix);
+cl::opt<std::string> TempDirname("t", cl::desc("Temp dir name"),
+ cl::value_desc("dir"), cl::Prefix);
cl::list<std::string> Languages("x",
cl::desc("Specify the language of the following input files"),
cl::ZeroOrMore);