aboutsummaryrefslogtreecommitdiff
path: root/docs/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-09-23 20:33:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-09-23 20:33:41 +0000
commit63bc59bf22b8f2e672fcf3904fe33993f69e006f (patch)
tree0e64ffd0f6e47269b0cd4356fbd8aa550a0289c4 /docs/tools
parent710e0c41ae0db3be3eec88fc47725da61e4bdef4 (diff)
Driver: Add a --working-directory option which can be used to cause the compiler
to operate "as if" in a certain working directory. - For now, we just implement this by changing the actual working directory, but eventually we would want to handle this transparently. This is useful to avoid an extra exec() pair in some situations, and will be something we would want to support for more flexibility in using the Clang libraries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tools')
-rw-r--r--docs/tools/clang.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/tools/clang.pod b/docs/tools/clang.pod
index 704cc8743b..abecd1c8ef 100644
--- a/docs/tools/clang.pod
+++ b/docs/tools/clang.pod
@@ -407,6 +407,13 @@ Print timing summary of each stage of compilation.
Show commands to run and use verbose output.
+=item B<--working-directory>
+
+Use the given argument as the effective working directory to run the compiler
+in. This is useful for running the compiler as if in a specific working
+directory without the overhead of having to change directory using an auxiliary
+process.
+
=back