Driver: only set -mlinker-version based on host if it's valid
authorTim Northover <tnorthover@apple.com>
Fri, 12 Jun 2015 19:21:35 +0000 (19:21 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 12 Jun 2015 19:21:35 +0000 (19:21 +0000)
commit018578c3953cb541d14c79e716f12f66510b9f2b
tree170c4b240a64a328a59aefddcd229f82c3ef0828
parent8f01f1cfc377c62cd649fe1b614cc362afecb59c
Driver: only set -mlinker-version based on host if it's valid

We were adding an extra "-mlinker-version" argument to the invocation
based on a value inferred from "ld -v". This is set by the build
systems to either a sane value or an empty string (e.g. for custom
built ld), which we don't want to pass on.

No test really possible because the value depends on both host system
and how CMake was invoked.

llvm-svn: 239633
clang/lib/Driver/Driver.cpp