Commit 5e915d8
committed
[MLIR][IRDL][CMake] Switch to using
Using `build_native_tool` directly doesn't seem to be standard, instead
other tools seem to call `setup_host_tool` (e.g. milr-linalg-ods-gen and
`add_tablegen` seems to have a copy of `setup_host_tool` internally).
When cross compiling llvm in two stages, the first building all native
tools and then the second using those built tools to cross compile, this
prevents the second stage from trying to rebuild mlir-irdl-to-cpp, which
fails.
(cherry picked from commit f5006e0)setup_host_tool to fix cross compilation (llvm#156606)1 parent 59efcb5 commit 5e915d8
1 file changed
+1
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 9 | + | |
0 commit comments