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

rcombs rcombs at rcombs.me
Wed Dec 22 02:07:22 EET 2021


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 --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"
-- 
2.33.1



More information about the ffmpeg-devel mailing list