Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Marky__Marky
Beginner
27 Views

Using another compiler on macOS

I have a newer LLVM at /usr/local/Cellar/llvm/5.0.2 I wish to use to build TBB on macOS, is setting

export CC=/usr/local/Cellar/llvm/5.0.2/bin/clang
export CXX=${CC}++
export LDFLAGS="-L/usr/local/Cellar/llvm/5.0.2/lib -Wl,-rpath,/usr/local/Cellar/llvm/5.0.2/lib"
export CPPFLAGS="-I/usr/local/Cellar/llvm/5.0.2/include -I/usr/local/Cellar/llvm/5.0.2/include/c++/v1/"

before make enough? also, if I want to build 32-bit lib do I need to have 32-bit build of LLVM?

Cheers

0 Kudos
0 Replies
Reply