4 ms·
Firefox appears to utilize a custom clang toolchain to enable this without documenting how to make such toolchain (wasi sysroot). And expects you to just downlo
by _rdvw 5y ago
Firefox appears to utilize a custom clang toolchain to enable this without documenting how to make such toolchain (wasi sysroot). And expects you to just download the precompiled version from their servers.
Fedora and Fennec F-Droid have since disabled this feature.
https://src.fedoraproject.org/rpms/firefox/c/4cb1381d80a94c9a41ded1a022276e1f664b1755 https://src.fedoraproject.org/rpms/firefox/c/4cb1381d80a94c9...
https://gitlab.com/relan/fennecbuild/-/commit/12cdb51bb045c31741ae36094849b4d5ef91b5f3#2a3ffa9e598316176c1c8434bbf16a4aa511d325_244_244 https://gitlab.com/relan/fennecbuild/-/commit/12cdb51bb045c3...
- fabrice_d 5y agoPretty sure you can build it yourself from https://github.com/WebAssembly/wasi-libc https://github.com/WebAssembly/wasi-libc given that https://github.com/WebAssembly/wasi-libc/commit/ad5133410f66b93a2381db5b542aad5e0964db96 https://github.com/WebAssembly/wasi-libc/commit/ad5133410f66... is a contribution from a MoCo employee doing a lot of work around toolchains.
- floatboth 5y agoThere's also the https://github.com/WebAssembly/wasi-sdk https://github.com/WebAssembly/wasi-sdk repo which is kind of a meta-build-system for all this. But in FreeBSD we build all the pieces directly, here's our build recipes (with some hacks due to llvm's cmake code being stupid sometimes): compiler-rt (from llvm): https://github.com/freebsd/freebsd-ports/blob/main/devel/wasi-compiler-rt13/Makefile https://github.com/freebsd/freebsd-ports/blob/main/devel/was... libc (from what you linked): https://github.com/freebsd/freebsd-ports/blob/main/devel/wasi-compiler-rt13/Makefile https://github.com/freebsd/freebsd-ports/blob/main/devel/was... libc++ (from llvm): https://github.com/freebsd/freebsd-ports/blob/main/devel/wasi-compiler-rt13/Makefile https://github.com/freebsd/freebsd-ports/blob/main/devel/was...
- GekkePrutser 5y agoYou're responsible for making Firefox work on FreeBSD? Thank you! I really appreciate your work and I use it every day.
- floatboth 5y agoI'm not part of gecko@ but I wrote the devel/wasi-* ports and I've contributed to Firefox itself on a few occasions (touchpad scrolling on GTK and partial invalidation for EGL) :)
- bscphil 5y agoLooks like Arch Linux is building it themselves with --with-wasi-sysroot. The changes they made to the build script for the 95.0 release are pretty instructive: https://github.com/archlinux/svntogit-packages/commit/532ac43e3b9eb66f5264ba934d9e0d367b556170 https://github.com/archlinux/svntogit-packages/commit/532ac4... Hopefully Fedora manage to implement this to their satisfaction in the near future, although requiring extremely recent releases of build tools might be a blocker for some distros.