fix : macos clean compilation fail, brew install some missed library (#28717)

fix macOS compilation fail, related #28715
1) install_deps.sh missed to install some dependencies 
2) llvm can not be found without a soft link

Signed-off-by: xiaofan luan <xiaofanluan@xiaofandeMacBook-Pro.local>
Co-authored-by: xiaofan luan <xiaofanluan@xiaofandeMacBook-Pro.local>
This commit is contained in:
Xiaofan 2023-11-27 10:06:26 +08:00 committed by GitHub
parent 8a9ab69369
commit f13ef1665a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ function install_linux_deps() {
function install_mac_deps() { function install_mac_deps() {
sudo xcode-select --install > /dev/null 2>&1 sudo xcode-select --install > /dev/null 2>&1
brew install libomp ninja cmake llvm@15 ccache grep pkg-config zip unzip brew install boost libomp ninja cmake llvm@15 ccache grep pkg-config zip unzip tbb
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
brew update && brew upgrade && brew cleanup brew update && brew upgrade && brew cleanup
@ -66,6 +66,8 @@ function install_mac_deps() {
brew install openssl brew install openssl
brew install librdkafka brew install librdkafka
fi fi
sudo ln -s "$(brew --prefix llvm@15)" "/usr/local/opt/llvm"
} }
if ! command -v go &> /dev/null if ! command -v go &> /dev/null