Skip to content

Commit 6da365e

Browse files
committed
Update README and test documentation for clang version consistency
1 parent 2f06d19 commit 6da365e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Build LLVM & Neura
77
$ git clone --depth 1 --branch release/19.x https://github.com/llvm/llvm-project.git
88
```
99
- Build LLVM:
10+
> **Note:**
11+
> `clang` is optional for building Neura itself, but installing and building `clang` together with `mlir` (by setting `-DLLVM_ENABLE_PROJECTS="clang;mlir"`) ensures that you have a `clang`/`clang++` matching the same LLVM/MLIR version (19).
12+
> This is recommended if you want to use `clang++` for C++ to LLVM IR/MLIR workflows and to avoid version mismatch issues.
13+
1014
```sh
1115
$ cd llvm-project
1216
$ mkdir build && cd build

test/c2llvm2mlir/test.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// We recommend using the clang++ built from the same LLVM/MLIR 19.x source.
33
// Please add your build directory to PATH before running tests:
44
// `export PATH=/path/to/llvm-project/build/bin:$PATH`
5-
// This ensures all clang++ invocations use the correct version.
5+
// This ensures all clang++ invocations use the same version.
66

77
// Compiles the original kernel.
88
// RUN: clang++ kernel.cpp -o %t-kernel.out

0 commit comments

Comments
 (0)