blob: b2e00da513f1a206384743a7d3b0e73c150b6aa3 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001#!/bin/sh
2
3if [ -z "$OECORE_NATIVE_SYSROOT" ]; then
4 echo "OECORE_NATIVE_SYSROOT not set; are you in a Yocto SDK environment?" >&2
5fi
6
7# If these are set to a cross-compile path, meson will get confused and try to
8# use them as native tools. Unset them to prevent this, as all the cross-compile
9# config is already in meson.cross.
10unset CC CXX CPP LD AR NM STRIP
11
12exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
13 --cross-file "$OECORE_NATIVE_SYSROOT/usr/share/meson/meson.cross" \
14 "$@"