[LLVMdev] [llvm-commits] Improved Covered Default Switch detection

Joe Abbey jabbey at arxan.com
Sun Nov 25 16:23:27 PST 2012


On Nov 25, 2012, at 7:00 PM, Joe Abbey <joe.abbey at gmail.com<mailto:joe.abbey at gmail.com>> wrote:


On Nov 25, 2012, at 6:49 PM, Eli Friedman <eli.friedman at gmail.com<mailto:eli.friedman at gmail.com>> wrote:

On Sun, Nov 25, 2012 at 3:19 PM, Joe Abbey <jabbey at arxan.com<mailto:jabbey at arxan.com>> wrote:
If cmake happens to detect GCC for the C compiler and Clang for the C++
compiler, then a manual override of either the C compiler or
SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG is required.  This has been happening
on my Darwin build environments:

-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.1.0

How did you end up in this situation?  Something has gone very wrong
if the build system finds clang++ but not clang.


I don't think I've done anything terribly unique.

1) Install Xcode

2) Installing command-line tools

jabbeymbp:llvmCommit jabbey$ ls -l /usr/bin/gcc /usr/bin/g++ /usr/bin/c++ /usr/bin/cc
lrwxr-xr-x  1 root  wheel   7 Nov 20 01:16 /usr/bin/c++ -> clang++
lrwxr-xr-x  1 root  wheel   5 Nov 20 01:16 /usr/bin/cc -> clang
lrwxr-xr-x  1 root  wheel  12 Nov 20 01:17 /usr/bin/g++ -> llvm-g++-4.2
lrwxr-xr-x  1 root  wheel  12 Nov 20 01:17 /usr/bin/gcc -> llvm-gcc-4.2
jabbeymbp:llvmCommit jabbey$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
jabbeymbp:llvmCommit jabbey$ cmake --version
cmake version 2.8.8

Is this not as expected?

Additionally:

jabbeymbp:llvmCommit jabbey$ xcodebuild -version
Xcode 4.5.2
Build version 4G2008a

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121125/16d382be/attachment.html>


More information about the llvm-dev mailing list