mirror of
https://github.com/ish-app/ish.git
synced 2026-01-18 13:57:29 +00:00
25 lines
437 B
Bash
Executable File
25 lines
437 B
Bash
Executable File
#!/bin/bash -ex
|
|
cd $SRCROOT
|
|
|
|
crossfile=cross-$(basename $TARGET_BUILD_DIR).txt
|
|
cat > $crossfile <<EOF
|
|
[binaries]
|
|
c = 'clang'
|
|
ar = 'ar'
|
|
|
|
[host_machine]
|
|
system = 'darwin'
|
|
cpu_family = '$ARCHS'
|
|
cpu = '$ARCHS'
|
|
endian = 'little'
|
|
|
|
[properties]
|
|
c_args = ['-arch', '$ARCHS']
|
|
needs_exe_wrapper = true
|
|
EOF
|
|
|
|
export CC="$SRCROOT/no-clang-env.sh clang"
|
|
if ! meson introspect --projectinfo; then
|
|
meson $TARGET_BUILD_DIR --cross-file $crossfile
|
|
fi
|