On MacOS terminal, when I run this command:
$ which clang
I got:
clang version 10.0.0
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Users/myusername/anaconda3/bin
But,I have another clang version on my Mac, the directory is:
/Library/Developer/CommandLineTools/usr/bin/clang
So, how to change my current clang directory (/Users/myusername/anaconda3/bin) to a new clang directory (/Library/Developer/CommandLineTools/usr/bin/clang)?
and I am wondering that why my clang is defaulted to install in Anaconda?
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: x86_64-apple-darwin21.6.0
Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
– zy zhao Oct 19 '22 at 10:49