Commit 179062b
authored
[mlir][bazel] add alwayslink=True to mlir-runner utils (llvm#133787)
MacOS platforms using mlir-runner in lit tests consistently hit the
following error:
```
# .---command stderr------------
# | JIT session error: Symbols not found: [ __mlir_ciface_printMemrefI32 ]
# | Error: Failed to materialize symbols: { (main, { __mlir_printMemrefI32, ... }) }
# `-----------------------------
```
google/heir#1521 (comment)
confirms the issue is fixed by using `alwayslink` on these two targets,
and I confirmed on a separate Apple M1 (OSX version Sequoia 15.3.2.).
I'm not an expert on the mlir runner internals, but given the
mlir-runner is purely for testing, and alwayslink at worst adds some
overhead by not removing symbols, it seems low risk.1 parent a03fce4 commit 179062b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10330 | 10330 | | |
10331 | 10331 | | |
10332 | 10332 | | |
| 10333 | + | |
10333 | 10334 | | |
10334 | 10335 | | |
10335 | 10336 | | |
| |||
10359 | 10360 | | |
10360 | 10361 | | |
10361 | 10362 | | |
| 10363 | + | |
10362 | 10364 | | |
10363 | 10365 | | |
10364 | 10366 | | |
| |||
0 commit comments