Setup clang to point LLVM instead of bin?

  Kiến thức lập trình

Pardon if it’s a beginners question… I’m trying to setup my clang and clang++ on my Mac Intel using brew.

For installing, I simply use brew install llvm libomp open-mpi.

Then I checked where it’s pointing with which clang++ and which clang. The result I would get is /usr/bin/clang++ /usr/bin/clang.

I was recommended to use LLVM. So how can I make it to point to /usr/local/opt/llvm/bin/clang++ and /usr/local/opt/llvm/bin/clang instead of bin?

Thank you very much

LEAVE A COMMENT