Skip to content

Commit

Permalink
Bug 1298387 - disable x86 assembly sources for libtheora when compili…
Browse files Browse the repository at this point in the history
…ng with clang-cl; r=rillian

MozReview-Commit-ID: 3DHvAC6XHjB
  • Loading branch information
froydnj committed Aug 26, 2016
1 parent 7ed75ef commit c3cb40c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions media/libtheora/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@ LOCAL_INCLUDES += ['include']

if '86' in CONFIG['OS_TEST']:
if CONFIG['OS_ARCH'] != 'SunOS':
if CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64':
if CONFIG['CLANG_CL']:
# clang-cl can't handle libtheora's inline asm.
pass
elif CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64':
DEFINES['OC_X86_ASM'] = True
if '64' in CONFIG['OS_TEST']:
DEFINES['OC_X86_64_ASM'] = True
if CONFIG['_MSC_VER']:
if '64' not in CONFIG['OS_TEST']:
if CONFIG['CLANG_CL']:
# clang-cl can't handle libtheora's inline asm.
pass
elif '64' not in CONFIG['OS_TEST']:
SOURCES += [
'lib/x86_vc/mmxfrag.c',
'lib/x86_vc/mmxidct.c',
Expand Down

0 comments on commit c3cb40c

Please sign in to comment.