mbox series

[0/2] target/hexagon: Fix macOS build

Message ID 20250312194547.7364-1-anjo@rev.ng (mailing list archive)
Headers show
Series target/hexagon: Fix macOS build | expand

Message

Anton Johansson March 12, 2025, 7:45 p.m. UTC
A default macOS build with xcode cli tools installed lacks the `indent`
program needed by the idef-parser postprocess step, remove this step. 

Additionally `cpp` used by the idef-parser preprocess step expands into
`clang ... -traditional-cpp` and doesn't support macro concatenation
among other things, replace it with a meson custom_target running
`${compiler} -E`.

fixes: https://lore.kernel.org/qemu-devel/d95ebf5d-c1f6-42c5-8aeb-65764fa87125@linaro.org/

Note: default bison on macOS is still too old (v2.3 vs v3.0) and a newer
version needs to be installed via homebrew. I'll take a look at
supporting v2.3.

Anton Johansson (2):
  target/hexagon: Replace `prepare` script with meson target
  target/hexagon: Drop `ident` postprocess step

 target/hexagon/idef-parser/prepare | 24 ------------------------
 target/hexagon/meson.build         | 24 ++++--------------------
 2 files changed, 4 insertions(+), 44 deletions(-)
 delete mode 100755 target/hexagon/idef-parser/prepare