diff options
| author | Eric Christopher <echristo@apple.com> | 2010-12-17 19:13:21 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-12-17 19:13:21 +0000 |
| commit | 2c5c3135286a8cb27406dc6dcecfbd16e7c898fa (patch) | |
| tree | 9044724a6699f380a3448c429ac029e9f2418f4f /lib/Driver/Driver.cpp | |
| parent | 154f251c6f47c68ba7c19ed1d5fb873de9fdece2 (diff) | |
| download | clang-2c5c3135286a8cb27406dc6dcecfbd16e7c898fa.tar.gz clang-2c5c3135286a8cb27406dc6dcecfbd16e7c898fa.tar.bz2 clang-2c5c3135286a8cb27406dc6dcecfbd16e7c898fa.tar.xz | |
Horrible hack for systems that use -dumpversion with clang to expect versions
that match gcc versions. Eew.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
| -rw-r--r-- | lib/Driver/Driver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index a3b7167c8b..621ce8dd58 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -417,8 +417,11 @@ bool Driver::HandleImmediateArgs(const Compilation &C) { return false; } + // This is a horrible hack. Some projects depend on gcc-like versions + // coming out of gcc -dumpversion to determine if the gcc compatible + // compiler has a correct version. Ideally we'd fix all of those projects. if (C.getArgs().hasArg(options::OPT_dumpversion)) { - llvm::outs() << CLANG_VERSION_STRING "\n"; + llvm::outs() << GCC_COMPAT_VERSION_STRING "\n"; return false; } |
