summaryrefslogtreecommitdiffstats
path: root/clang/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
commit10d398f8943076f63cb05f0e1ac8e7cbf47f14eb (patch)
treec244ffd0f1edc9d61c704cfef017f1611558a32a /clang/docs/tools
parent83dea558bcca18a5b15d7c044c18099b26b5a3d4 (diff)
downloadbcm5719-llvm-10d398f8943076f63cb05f0e1ac8e7cbf47f14eb.tar.gz
bcm5719-llvm-10d398f8943076f63cb05f0e1ac8e7cbf47f14eb.zip
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. llvm-svn: 140409
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/clang.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/docs/tools/clang.pod b/clang/docs/tools/clang.pod
index 704cc8743ba..abecd1c8ef5 100644
--- a/clang/docs/tools/clang.pod
+++ b/clang/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
OpenPOWER on IntegriCloud