summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver/driver.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-01-15 01:41:52 +0000
committerBob Wilson <bob.wilson@apple.com>2014-01-15 01:41:52 +0000
commita19fad7735862b92b02e8a8b1580f499438f7dcd (patch)
tree2171a774cf424b713db57963f901c5833d3fb259 /clang/tools/driver/driver.cpp
parentfe26fd27b421bedaf55a057eec9ad5c9f1be5cc2 (diff)
downloadbcm5719-llvm-a19fad7735862b92b02e8a8b1580f499438f7dcd.tar.gz
bcm5719-llvm-a19fad7735862b92b02e8a8b1580f499438f7dcd.zip
Rename QA_OVERRIDE_GCC3_OPTIONS to CCC_OVERRIDE_OPTIONS. <rdar://14578381>
Continue to accept the old name for a while to make it an easier transition for people who rely on this. llvm-svn: 199283
Diffstat (limited to 'clang/tools/driver/driver.cpp')
-rw-r--r--clang/tools/driver/driver.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp
index 12feb36e7bb..8acd9b378c2 100644
--- a/clang/tools/driver/driver.cpp
+++ b/clang/tools/driver/driver.cpp
@@ -169,7 +169,7 @@ static void ApplyQAOverride(SmallVectorImpl<const char*> &Args,
OS = &llvm::nulls();
}
- *OS << "### QA_OVERRIDE_GCC3_OPTIONS: " << OverrideStr << "\n";
+ *OS << "### CCC_OVERRIDE_OPTIONS: " << OverrideStr << "\n";
// This does not need to be efficient.
@@ -330,11 +330,15 @@ int main(int argc_, const char **argv_) {
}
}
- // Handle QA_OVERRIDE_GCC3_OPTIONS and CCC_ADD_ARGS, used for editing a
- // command line behind the scenes.
- if (const char *OverrideStr = ::getenv("QA_OVERRIDE_GCC3_OPTIONS")) {
+ // Handle CCC_OVERRIDE_OPTIONS, used for editing a command line behind the
+ // scenes. Temporarily accept the old QA_OVERRIDE_GCC3_OPTIONS name
+ // for this, to ease the transition. FIXME: Remove support for that old name
+ // after a while.
+ if (const char *OverrideStr = ::getenv("CCC_OVERRIDE_OPTIONS")) {
// FIXME: Driver shouldn't take extra initial argument.
ApplyQAOverride(argv, OverrideStr, SavedStrings);
+ } else if (const char *OverrideStr = ::getenv("QA_OVERRIDE_GCC3_OPTIONS")) {
+ ApplyQAOverride(argv, OverrideStr, SavedStrings);
}
std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes);
OpenPOWER on IntegriCloud