title: How do I upgrade gcc's Clang version in OS X?
body: <p>I know that recent Mac OS X versions don't use gcc (g++). When I type gcc or g++ the OS actually uses Clang (cc).</p>
  
  <p>Now, I'm running OS X 10.8.2 with LLVM version 4.2 (clang-425.0.28), installed through XCode:</p>
  
  <pre><code>$ g++ --version
  Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
  Target: x86_64-apple-darwin12.2.0
  Thread model: posix
  </code></pre>
  
  <p>However, buried in the file system there's another more recent Clang version:</p>
  
  <pre><code>$ clang --version
  Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  Target: x86_64-apple-darwin12.2.0
  Thread model: posix
  </code></pre>
  
  <p>How can I force gcc to "link" Clang 503... instead of Clang 425...?</p>