[vlc-commits] [Git][videolan/vlc][master] 2 commits: wasm: build: export bitcode modules with `-emit-llvm`

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Mar 15 07:31:30 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8c8b9c37 by Alaric Senat at 2024-03-15T06:35:57+00:00
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] https://github.com/emscripten-core/emscripten/commit/94b36c04dd323af066f2c1ab6d13f26eb818eb0b

- - - - -
0051b5f4 by Alaric Senat at 2024-03-15T06:35:57+00:00
extras: ci: update emscripten image

The new image contains the latest version of the emscripten SDK.

- - - - -


2 changed files:

- extras/ci/gitlab-ci.yml
- extras/package/wasm-emscripten/build.sh


Changes:

=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -27,7 +27,7 @@ variables:
     VLC_ANDROID_IMAGE: registry.videolan.org/vlc-debian-android:20231013040434
     VLC_SNAP_IMAGE: registry.videolan.org/vlc-ubuntu-focal:20231013031754
     VLC_RASPBIAN_IMAGE: registry.videolan.org/vlc-ubuntu-raspberry:20231013032350
-    VLC_WASM_EMSCRIPTEN: registry.videolan.org/vlc-debian-wasm-emscripten:20231104024403
+    VLC_WASM_EMSCRIPTEN: registry.videolan.org/vlc-debian-wasm-emscripten:20240313095757
 
 .variables-debian: &variables-debian
         HOST_ARCH: x86_64


=====================================
extras/package/wasm-emscripten/build.sh
=====================================
@@ -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!"



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7a5815afc3158d85c25d47466a05b4dd2de2133e...0051b5f46e14b1719a620040262bef7d442d61a6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7a5815afc3158d85c25d47466a05b4dd2de2133e...0051b5f46e14b1719a620040262bef7d442d61a6
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list