diff mbox series

[FFmpeg-devel,4/7] configure: ensure we use the macOS SDK's metal compiler by default

Message ID 20211222000725.38266-4-rcombs@rcombs.me
State Accepted
Commit 376790086046f57283491854544ea85cfd73e4ce
Headers show
Series [FFmpeg-devel,1/7] configure: fix setting OBJCCFLAGS | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Ridley Combs Dec. 22, 2021, 12:07 a.m. UTC
Apparently on some OS and Xcode versions this can select an iOS SDK,
which in turn may fail on the affected versions.
---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/configure b/configure
index 3ed7467252..06a4d3f485 100755
--- a/configure
+++ b/configure
@@ -3844,8 +3844,8 @@  host_cc_default="gcc"
 doxygen_default="doxygen"
 install="install"
 ln_s_default="ln -s -f"
-metalcc_default="xcrun metal"
-metallib_default="xcrun metallib"
+metalcc_default="xcrun -sdk macosx metal"
+metallib_default="xcrun -sdk macosx metallib"
 nm_default="nm -g"
 pkg_config_default=pkg-config
 ranlib_default="ranlib"