Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | if [ -z "$OECORE_NATIVE_SYSROOT" ]; then |
| 4 | echo "OECORE_NATIVE_SYSROOT not set; are you in a Yocto SDK environment?" >&2 |
| 5 | fi |
| 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. |
| 10 | unset CC CXX CPP LD AR NM STRIP |
| 11 | |
| 12 | exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | --cross-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/${TARGET_PREFIX}meson.cross" \ |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 14 | --native-file "${OECORE_NATIVE_SYSROOT}/usr/share/meson/meson.native" \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 15 | "$@" |