diff mbox series

[FFmpeg-devel,5/7] configure: test the metal compiler before use

Message ID 20211222000725.38266-5-rcombs@rcombs.me
State Accepted
Commit 62ad427823a22e2afa5069f9611ce07d6a87da78
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 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.
---
 configure | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index 06a4d3f485..cb02c54bf1 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