Merge lp:~davidagraf/zorba/detect-clang-properly into lp:zorba
Proposed by
David Graf
Status: | Merged |
---|---|
Approved by: | David Graf |
Approved revision: | 10942 |
Merged at revision: | 10979 |
Proposed branch: | lp:~davidagraf/zorba/detect-clang-properly |
Merge into: | lp:zorba |
Diff against target: |
27 lines (+12/-5) 1 file modified
CMakeCompiler.txt (+12/-5) |
To merge this branch: | bzr merge lp:~davidagraf/zorba/detect-clang-properly |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Graf (community) | Approve | ||
Paul J. Lucas | Approve | ||
Review via email: mp+117994@code.launchpad.net |
Commit message
Since OSX Mountain Lion, clang is the default c++ compiler on mac. Therefore, it is not enough to check if the c++ compiler executable is called clang.
Description of the change
Since OSX Mountain Lion, clang is the default c++ compiler on mac. Therefore, it is not enough to check if the c++ compiler executable is called clang.
To post a comment you must log in.
gcc --version only output the string "llvm" or "LLVM" and not "clang. You should check for "LLVM" and not "clang".
$ gcc --version darwin11- llvm-gcc- 4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
i686-apple-
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.