x264: only build with `nasm` on intel

master
Michael Cho 2022-10-22 02:13:44 -07:00 committed by BrewTestBot
parent 163eead6e9
commit 7c0a12bad4
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 2 deletions

View File

@ -49,12 +49,14 @@ class X264 < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "21bd89d6cc7283c8f77b9a2655b6bfe9f7c8d1d6d098b5c402a33fac27d9f8bb" sha256 cellar: :any_skip_relocation, x86_64_linux: "21bd89d6cc7283c8f77b9a2655b6bfe9f7c8d1d6d098b5c402a33fac27d9f8bb"
end end
depends_on "nasm" => :build
on_macos do on_macos do
depends_on "gcc" if DevelopmentTools.clang_build_version <= 902 depends_on "gcc" if DevelopmentTools.clang_build_version <= 902
end end
on_intel do
depends_on "nasm" => :build
end
# https://code.videolan.org/videolan/x264/-/commit/b5bc5d69c580429ff716bafcd43655e855c31b02 # https://code.videolan.org/videolan/x264/-/commit/b5bc5d69c580429ff716bafcd43655e855c31b02
fails_with :clang do fails_with :clang do
build 902 build 902