Skip to content

Commit

Permalink
fix macOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Sep 28, 2023
1 parent 2a37bcb commit 90faf99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-scripts/01-libvpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cd libvpx

# NOTE: disabling unit tests and examples significantly reduces build
# time (by 80% as tested on a Jetson Nano)
# NOTE: --enable-runtime-cpu-detect fails on macOS arm64.
./configure \
--enable-vp8 \
--enable-vp9 \
--enable-runtime-cpu-detect \
--disable-unit-tests \
--disable-examples \
--enable-static \
Expand Down
5 changes: 5 additions & 0 deletions build-scripts/07-mbedtls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ git clone --depth 1 https://github.com/ARMmbed/mbedtls.git -b "$tag"

cd mbedtls

# Remove some compiler flags that cause build failures on macOS arm64. This
# can't be done through CMake variables, so we have to patch the source.
sed -e 's/-Wdocumentation//' -e 's/-Wno-documentation-deprecated-sync//' \
-i.bk library/CMakeLists.txt

# NOTE: without CMAKE_INSTALL_PREFIX on Windows, files are installed
# to c:\Program Files.
cmake . \
Expand Down

0 comments on commit 90faf99

Please sign in to comment.