#!/bin/sh
# SPDX-FileCopyrightText: 2026 Mycel UG (haftungsbeschränkt)
#
# SPDX-License-Identifier: MIT
#
# C compiler for aarch64-apple-darwin: zig cc. The cc crate adds --target=…,
# which conflicts with zig's own -target, so it is dropped.
for a in "$@"; do
  shift
  case "$a" in --target=*|-target=*) ;; *) set -- "$@" "$a" ;; esac
done
exec "${ZIG:-zig}" cc -target aarch64-macos.11.0 "$@"
