Skip to content

Commit

Permalink
Disable PGO on libaom to prevent polly build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed Aug 9, 2023
1 parent ad9b1da commit 6c614ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions media/libaom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ with Files('*'):

include('sources.mozbuild')

if CONFIG["CPU_ARCH"] == "aarch64":
if CONFIG['OS_TARGET'] == 'Darwin':
NO_PGO = True

# Linux, Mac and Win share file lists for x86* but not configurations.
if CONFIG['CPU_ARCH'] == 'x86_64':
EXPORTS.aom += files['X64_EXPORTS']
Expand All @@ -25,10 +29,12 @@ if CONFIG['CPU_ARCH'] == 'x86_64':
ASFLAGS += [ '-I%s/media/libaom/config/mac/x64/' % TOPSRCDIR ]
LOCAL_INCLUDES += [ '/media/libaom/config/mac/x64/' ]
EXPORTS.aom += [ 'config/mac/x64/config/aom_config.h' ]
NO_PGO = True
else: # Android, Linux, BSDs, etc.
ASFLAGS += [ '-I%s/media/libaom/config/linux/x64/' % TOPSRCDIR ]
LOCAL_INCLUDES += [ '/media/libaom/config/linux/x64/' ]
EXPORTS.aom += [ 'config/linux/x64/config/aom_config.h' ]
NO_PGO = True
elif CONFIG['CPU_ARCH'] == 'x86':
EXPORTS.aom += files['IA32_EXPORTS']
SOURCES += files['IA32_SOURCES']
Expand Down

0 comments on commit 6c614ea

Please sign in to comment.