[Support] sys::getProcessTriple should return a macOS triple using
authorAlex Lorenz <arphaman@gmail.com>
Fri, 7 Jul 2017 09:53:47 +0000 (09:53 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 7 Jul 2017 09:53:47 +0000 (09:53 +0000)
commit3803df3dcdad05b68d1547ee9e1cbbd2996dbb23
tree4f1d56800f4d07e05535c24be7d422dc53b5d910
parent67049f034da014ad51f1e5a09fbb97a86925c31f
[Support] sys::getProcessTriple should return a macOS triple using
the system's version of macOS

sys::getProcessTriple returns LLVM_HOST_TRIPLE, whose system version might not
be the actual version of the system on which the compiler running. This commit
ensures that, for macOS, sys::getProcessTriple returns a triple with the
system's macOS version.

rdar://33177551

Differential Revision: https://reviews.llvm.org/D34446

llvm-svn: 307372
llvm/lib/Support/Host.cpp
llvm/lib/Support/Unix/Host.inc
llvm/lib/Support/Windows/Host.inc
llvm/unittests/Support/Host.cpp