[all-commits] [llvm/llvm-project] f5006e: [MLIR][IRDL][CMake] Switch to using `setup_host_to...

Zentrik via All-commits all-commits at lists.llvm.org
Wed Sep 3 10:18:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5006e043143717e2e8ade9a009e1209b4a3563b
      https://github.com/llvm/llvm-project/commit/f5006e043143717e2e8ade9a009e1209b4a3563b
  Author: Zentrik <llvm.zentrik at gmail.com>
  Date:   2025-09-03 (Wed, 03 Sep 2025)

  Changed paths:
    M mlir/tools/mlir-irdl-to-cpp/CMakeLists.txt

  Log Message:
  -----------
  [MLIR][IRDL][CMake] Switch to using `setup_host_tool` to fix cross compilation (#156606)

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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list