Skip to content

Commit

Permalink
[compiler] fix compilation on AArch64 platform (#358)
Browse files Browse the repository at this point in the history
- update Readme with AArch64 platform settings
- fix potential compilation error on AArch64 platform
  • Loading branch information
jianwenyyy committed Jun 20, 2024
1 parent c576d6f commit 01098f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ cmake -H./llvm \
-DCMAKE_INSTALL_PREFIX=$(pwd)/build/install
# via -DCMAKE_C_COMPILER=gcc/clang and -DCMAKE_CXX_COMPILER=g++/clang++
# to specify gcc>=8.5 or clang>=7
# for Mac users, set -DLLVM_TARGETS_TO_BUILD="AArch64;NVPTX"

cmake --build ./build --target all --target install
```
Expand Down
1 change: 1 addition & 0 deletions compiler/lib/Dialect/mhlo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ add_mlir_dialect_library(ByteIRMhloPasses
ByteIRMhloAnalysis
ByteIRMhloDynamicShapeOpRegister
MLIRAceDialect
MLIRCatDialect

LINK_LIBS PUBLIC
MLIRIR
Expand Down

0 comments on commit 01098f8

Please sign in to comment.