diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-03 16:36:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-01-14 20:26:53 (GMT) |
commit | 1f085e11e40a20f8e8702da7920e950e47deb27c (patch) | |
tree | c01057c7aa540fa3eed3fdaf905687e89db33505 /Help | |
parent | 85d3173590e4bae63e8422ac8083a77806491b92 (diff) | |
download | CMake-1f085e11e40a20f8e8702da7920e950e47deb27c.zip CMake-1f085e11e40a20f8e8702da7920e950e47deb27c.tar.gz CMake-1f085e11e40a20f8e8702da7920e950e47deb27c.tar.bz2 |
OS X: Resolve compiler in /usr/bin to that reported by Xcode xcrun
The compiler in the PATH on mac is a stub for a different delegate
depending on the environment. Rather than requiring xcode-select to
change the used Xcode globally, users should be able to choose the
compiler per-session. That is possible with the DEVELOPER_DIR
environment variable.
However, the environment can change between running CMake and invoking
the build. In such cases, CMake prefers to record the relevant paths
from the environment and use them when invoking the build. That is not
currently done for the compilers on APPLE, so the compiler used is not
the one reported when running cmake:
$ DEVELOPER_DIR=/Applications/Xcode2.app/Contents/Developer/ cc --version
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
$ DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer/ cc --version
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Update that now by querying Xcode for the correct compiler path if
the compiler located by ordinary means is located in /usr/bin.
Diffstat (limited to 'Help')
0 files changed, 0 insertions, 0 deletions