Skip to content

Commit 322af45

Browse files
Kagamia
authored and
a
committed
Disable building vectorized code for lame
On some versions of Emscripten/configurations check for xmmintrin returns true but the vectorized code fails to build. See: Kagami#16
1 parent 504706e commit 322af45

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ build/libvpx/dist/lib/libvpx.so:
174174

175175
build/lame/dist/lib/libmp3lame.so:
176176
cd build/lame && \
177+
git reset --hard && \
178+
patch -p1 < ../lame-configure.patch && \
177179
emconfigure ./configure \
178180
--prefix="$$(pwd)/dist" \
179181
--host=x86-none-linux \

build/lame-configure.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/configure b/configure
2+
index 87aef96..d8f614d 100755
3+
--- a/configure
4+
+++ b/configure
5+
@@ -15680,7 +15680,7 @@ $as_echo "#define USE_FAST_LOG 1" >>confdefs.h
6+
;;
7+
*86)
8+
CPUTYPE="i386"
9+
- if test $ac_cv_header_xmmintrin_h = yes ; then
10+
+ if false ; then
11+
WITH_XMM=yes
12+
WITH_VECTOR=yes
13+
fi

0 commit comments

Comments
 (0)