mirror of https://code.videolan.org/videolan/vlc
wasm: build: export bitcode modules with `-emit-llvm`
Both `-emit-llvm` and a `.bc` output extension are needed to export
bitcode since emscripten 3.1.50[^1]. Otherwise a plain object file will
be created.
[^1] 94b36c04dd
This commit is contained in:
parent
7a5815afc3
commit
8c8b9c3750
|
@ -251,6 +251,6 @@ if echo "${VLC_USE_SANITIZER}" | grep address > /dev/null; then
|
|||
SANITIZERS="$SANITIZERS -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer"
|
||||
fi
|
||||
|
||||
emcc $SANITIZERS -pthread -c "$BUILD_PATH"/vlc-modules.c -I"$VLC_SRCPATH"/include -I"$BUILD_PATH" -o "$BUILD_PATH"/vlc-modules.bc
|
||||
emcc $SANITIZERS -pthread -c -emit-llvm "$BUILD_PATH"/vlc-modules.c -I"$VLC_SRCPATH"/include -I"$BUILD_PATH" -o "$BUILD_PATH"/vlc-modules.bc
|
||||
|
||||
echo "VLC for wasm32-unknown-emscripten built!"
|
||||
|
|
Loading…
Reference in New Issue