| Lift freeq's AV media plane out of sleek 90f8b89 nandi 20d ago | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | PATH=$PATH:$HOME/.cargo/bin |
| 6 | if [[ -n "${DEVELOPER_SDK_DIR:-}" ]]; then |
| 7 | # Assume we're in Xcode, which means we're probably cross-compiling. |
| 8 | # In this case, we need to add an extra library search path for build scripts and proc-macros, |
| 9 | # which run on the host instead of the target. |
| 10 | # (macOS Big Sur does not have linkable libraries in /usr/lib/.) |
| 11 | export LIBRARY_PATH="${DEVELOPER_SDK_DIR}/MacOSX.sdk/usr/lib:${LIBRARY_PATH:-}" |
| 12 | fi |
| 13 | |
| 14 | # If you want your build to run faster, add a "--targets x86_64-apple-ios" for just using the ios simulator. |
| 15 | if [ -n "${IOS_TARGETS}" ]; then |
| 16 | cargo lipo --targets "${IOS_TARGETS}" |
| 17 | else |
| 18 | cargo lipo |
| 19 | fi |