Skip to content

Conversation

Zentrik
Copy link
Contributor

@Zentrik Zentrik commented Sep 3, 2025

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.

…mpilation

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.
@Zentrik Zentrik closed this Sep 3, 2025
@Zentrik Zentrik deleted the rahulg/fix_mlir_irdl_to_cpp_crosscompile branch September 3, 2025 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant