[cfe-commits] r81017 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Fri Sep 4 11:35:03 PDT 2009
Author: ddunbar
Date: Fri Sep 4 13:35:03 2009
New Revision: 81017
URL: http://llvm.org/viewvc/llvm-project?rev=81017&view=rev
Log:
Add -ccc-install-dir option for faking installation path.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=81017&r1=81016&r2=81017&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Sep 4 13:35:03 2009
@@ -191,6 +191,10 @@
assert(Start+1 < End && "FIXME: -ccc- argument handling.");
HostTriple = *++Start;
+ } else if (!strcmp(Opt, "install-dir")) {
+ assert(Start+1 < End && "FIXME: -ccc- argument handling.");
+ Dir = *++Start;
+
} else {
// FIXME: Error handling.
llvm::errs() << "invalid option: " << *Start << "\n";
@@ -366,7 +370,9 @@
OptionHelp.push_back(std::make_pair("\nDEBUG/DEVELOPMENT OPTIONS:",""));
OptionHelp.push_back(std::make_pair("-ccc-host-triple",
- "Simulate running on the given target"));
+ "Simulate running on the given target"));
+ OptionHelp.push_back(std::make_pair("-ccc-install-dir",
+ "Simulate installation in the given directory"));
OptionHelp.push_back(std::make_pair("-ccc-print-options",
"Dump parsed command line arguments"));
OptionHelp.push_back(std::make_pair("-ccc-print-phases",
More information about the cfe-commits
mailing list