C/C++ Upgrading Base Clang

blueCub

Member

Reaction score: 8
Messages: 57

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 :)
 

Tabs

Member

Reaction score: 21
Messages: 65

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 :)
 
Top