Commit 18fa6dc7 authored by Mehdi Sabwat's avatar Mehdi Sabwat
Browse files

update module generation.

1. fix llvm-nm reference.
2. add mandatory -pthread flag for wasm.
parent ba41498a
......@@ -149,7 +149,7 @@ diagnostic "Generating module list"
cd ../..
./generate_modules_list.sh
cd vlc/build-emscripten
emcc vlc-modules.c -o vlc-modules.bc
emcc vlc-modules.c -o vlc-modules.bc -pthread
cd ../..
# copy Dolby_Canyon.vob
......
......@@ -31,6 +31,7 @@ fi
cd vlc
PROJECT_DIR=$(pwd)
NM="$EMSDK/upstream/bin/llvm-nm"
cd build-emscripten/modules/.libs
......@@ -54,7 +55,7 @@ done
for file in $VLCMODULES
do
symbols=$(llvm-nm -g $file)
symbols=$($NM -g $file)
entryname=$(get_symbol "$symbols" _)
DEFINITIONS+="int $entryname (int (*)(void *, void *, int, ...), void *);\n";
BUILTINS+=" $entryname,\n"
......
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