summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2022-07-23 07:17:30 -0500
committerJeremy Andrews <athenian200@outlook.com>2022-07-23 07:17:30 -0500
commit3f0dc49164abdf1c9cdf60f20fe1eaf83fe865ba (patch)
treece410278fce1e583a29749319cb62c7b3bc44bb6
parent81f39035984b3a54bf24c9e9aeeea7d9d5d6469e (diff)
downloaduxp-3f0dc49164abdf1c9cdf60f20fe1eaf83fe865ba.tar.gz
Issue #1962 - Follow-up: Fix 32-bit build and remove unused clang-cl codepath.
-rw-r--r--media/libtheora/moz.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/media/libtheora/moz.build b/media/libtheora/moz.build
index b7d6ba74c6..6f9916544f 100644
--- a/media/libtheora/moz.build
+++ b/media/libtheora/moz.build
@@ -63,10 +63,9 @@ if CONFIG['INTEL_ARCHITECTURE']:
if CONFIG['CPU_ARCH'] == 'x86_64':
DEFINES['OC_X86_64_ASM'] = True
if CONFIG['_MSC_VER']:
- if CONFIG['CC_TYPE'] == 'clang-cl':
- # clang-cl can't handle libtheora's inline asm.
- pass
- elif CONFIG['CPU_ARCH'] == 'x86_64':
+ # MSVC doesn't allow inline assembly in 64-bit code.
+ # Thus, only 32-bit Windows builds benefit from optimization.
+ if CONFIG['CPU_ARCH'] != 'x86_64':
SOURCES += [
'lib/x86_vc/mmxfrag.c',
'lib/x86_vc/mmxidct.c',