CMake: make the regexes used for setting HOST_LINK_VERSION more forgiving (PR21268)
authorHans Wennborg <hans@hanshq.net>
Tue, 2 Dec 2014 03:08:38 +0000 (03:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 2 Dec 2014 03:08:38 +0000 (03:08 +0000)
commit76abe8ef98c6743424d3bf7fc0b9f95c29cee026
tree254954d7f47ec50dd37a92bd5d18b696c81f57cc
parent0101b540dbc4cf929c4f8cf935e36b9fbe217a0b
CMake: make the regexes used for setting HOST_LINK_VERSION more forgiving (PR21268)

If the output of 'ld -v' didn't match the regexes, CMake would previously error
with a message like:

  CMake Error at tools/clang/CMakeLists.txt:269 (string):
    string sub-command REGEX, mode REPLACE regex "[^0-9]*([0-9.]*).*" matched
    an empty string.

llvm-svn: 223106
clang/CMakeLists.txt