Skip to content

Commit

Permalink
[chore](macOS) Specify the version of LLVM for Homebrew to install it (
Browse files Browse the repository at this point in the history
…apache#17945)

Clang 16 was released last week and we haven't ported the codebase to it. If Homebrew bumped the version of LLVM, our workflows would fail.
  • Loading branch information
adonis0147 committed Apr 24, 2023
1 parent 12d6bc3 commit 9eddb53
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/be-ut-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
'texinfo'
'coreutils'
'gnu-getopt'
'python'
'python@3'
'cmake'
'ninja'
'ccache'
Expand All @@ -79,7 +79,7 @@ jobs:
'openjdk@11'
'maven'
'node'
'llvm'
'llvm@15'
)
brew install "${cellars[@]}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-thirdparty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:
'openjdk-11-jdk'
'openjdk-11-jdk-headless'
'maven'
'llvm'
)
sudo apt update
Expand Down Expand Up @@ -135,7 +134,7 @@ jobs:
'texinfo'
'coreutils'
'gnu-getopt'
'python'
'python@3'
'cmake'
'ninja'
'ccache'
Expand All @@ -147,6 +146,7 @@ jobs:
'openjdk@11'
'maven'
'node'
'llvm@15'
)
brew install "${packages[@]}"
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/install/source-install/compilation-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This post introduces how to compile from source on macOS (both x86_64 and arm64)
1. Use [Homebrew](https://brew.sh/) to install tools
```shell
brew install automake autoconf libtool pkg-config texinfo coreutils gnu-getopt \
python cmake ninja ccache bison byacc gettext wget pcre maven llvm openjdk@11 npm
python@3 cmake ninja ccache bison byacc gettext wget pcre maven llvm@15 openjdk@11 npm
```

2. Compile from source
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/docs/install/source-install/compilation-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ under the License.
1. 使用[Homebrew](https://brew.sh/)安装依赖
```shell
brew install automake autoconf libtool pkg-config texinfo coreutils gnu-getopt \
python cmake ninja ccache bison byacc gettext wget pcre maven llvm openjdk@11 npm
python@3 cmake ninja ccache bison byacc gettext wget pcre maven llvm@15 openjdk@11 npm
```

2. 编译源码
Expand Down
4 changes: 2 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CELLARS=(
texinfo
coreutils
gnu-getopt
python
python@3
cmake
ninja
ccache
Expand All @@ -61,7 +61,7 @@ CELLARS=(
wget
pcre
maven
llvm
llvm@15
)
for cellar in "\${CELLARS[@]}"; do
EXPORT_CELLARS="\${HOMEBREW_REPO_PREFIX}/opt/\${cellar}/bin:\${EXPORT_CELLARS}"
Expand Down

0 comments on commit 9eddb53

Please sign in to comment.