Skip to content

Commit e51dad1

Browse files
loyvondataroaring
andcommitted
[Doc]Specify LLVM compiler in build on MacOS (#2891)
## Versions - [+] dev - [ ] 3.0 - [ ] 2.1 - [ ] 2.0 ## Languages - [] Chinese - [+] English ## Docs Checklist - [ ] Checked by AI - [ ] Test Cases Built --------- Co-authored-by: Yongqiang YANG <yangyongqiang@selectdb.com>
1 parent fb928cd commit e51dad1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

community/developer-guide/mac-dev/dev-prepare.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ under the License.
2828

2929
```shell
3030
brew install automake autoconf libtool pkg-config texinfo coreutils gnu-getopt \
31-
python@3 cmake ninja ccache bison byacc gettext wget pcre maven llvm@20 openjdk@17 npm
31+
python@3 cmake ninja ccache bison byacc gettext wget pcre maven llvm@21 openjdk@17 npm
3232
```
3333

3434
*The version of jdk installed using brew is 17, because on macOS, the arm64 version of brew does not have version 8 of jdk by default*
@@ -83,6 +83,8 @@ reference link: `https://gist.github.com/tonydeng/02e571f273d6cce4230dc8d5f39449
8383
```shell
8484
export DORIS_HOME=~/DorisDev/doris
8585
export PATH=$DORIS_HOME/bin:$PATH
86+
export LDFLAGS="-L$(brew --prefix llvm)/lib${LDFLAGS:+ $LDFLAGS}"
87+
export CPPFLAGS="-I$(brew --prefix llvm)/include${CPPFLAGS:+ $CPPFLAGS}"
8688
```
8789

8890
## Download Doris compilation dependencies

0 commit comments

Comments
 (0)