[FFmpeg-cvslog] configure: test the metal compiler before use

rcombs git at videolan.org
Thu Dec 23 02:45:37 EET 2021


ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Tue Dec 21 02:35:40 2021 -0600| [62ad427823a22e2afa5069f9611ce07d6a87da78] | committer: rcombs

configure: test the metal compiler before use

Apparently Metal.framework is included with the command line tools
(and thus may be present without Xcode), but the Metal compiler is only
included as part of Xcode.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62ad427823a22e2afa5069f9611ce07d6a87da78
---

 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index 93c1fb1871..410f7cb241 100755
--- a/configure
+++ b/configure
@@ -6365,6 +6365,8 @@ enabled videotoolbox && {
     check_func_headers CoreVideo/CVImageBuffer.h kCVImageBufferTransferFunction_SMPTE_ST_428_1 "-framework CoreVideo"
 }
 
+enabled metal && test_cmd $metalcc -v || disable metal
+
 check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
 
 check_type "windows.h dxva.h" "DXVA_PicParams_AV1" -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -D_CRT_BUILD_DESKTOP_APP=0



More information about the ffmpeg-cvslog mailing list