Commit 98edefa2 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by Matthew Waters
Browse files

x264: add support for macOS ARM64

Part-of: <!661>
parent c13a83bc
......@@ -111,6 +111,12 @@ env['OBJCXX'] = 'clang++'
# Since 10.10 libstdc++ is deprecated, and might no longer be
# shipped. Make sure we use libc++ instead
env['CXXFLAGS'] += ' -stdlib=libc++ '
env['AS']= 'as'
if target_arch in [Architecture.X86, Architecture.X86_64]:
env.pop('GAS', None)
else:
env['GAS']= '%s %s %s -fembed-bitcode' % ('gas-preprocessor.pl', env['CC'], env['CFLAGS'])
if target_arch != Architecture.UNIVERSAL:
......
......@@ -37,7 +37,7 @@ class Recipe(recipe.Recipe):
AS = [cc]
else:
AS = []
if self.config.target_platform == Platform.IOS:
if self.config.target_platform in [Platform.IOS, Platform.DARWIN]:
if Architecture.is_arm(self.config.target_arch):
# x264 ships its own gas-preprocessor.pl
AS = ['tools/' + self.get_env('GAS')]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment