I'm trying to set clang++ as the system C++ compiler on Fedora 18. I have installed clang and added it to
alternatives but it doesn't appear to be working.
[user@localhost ~]$ alternatives --display c++ c++ - status is auto. link currently points to /usr/bin/clang++ /usr/bin/clang++ - priority 1 Current `best' version is /usr/bin/clang++. [user@localhost ~]$ c++ --version c++ (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8) Copyright (C) 2012 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.
c++ still appears to be using gcc even though
alternatives is configured to use clang++.
type -a c++ output:
[user@localhost ~]$ type -a c++ c++ is /usr/bin/c++ c++ is /bin/c++