C Upgrading Base Clang

Hi there,
I wonder how I can upgrade the Clang/llvm that is ported with FreeBSD.
I know i can get the newest version from ports but how can I make the ports version the default clang for the system.

Thanks :)
 
I think most stuff should honour the CC environment variable, so you should be able to just:
export CC="/usr/local/bin/clang"

If you are calling the clang binary directly, then you could alias clang to the ports version:
alias clang="/usr/local/bin/clang"

Cheers :)
 
Back
Top