Skip to content

libffi: support wasm32 - #1144

Merged
xushiwei merged 1 commit into
xgo-dev:mainfrom
visualfc:ffi_wasm
Jun 12, 2025
Merged

libffi: support wasm32#1144
xushiwei merged 1 commit into
xgo-dev:mainfrom
visualfc:ffi_wasm

Conversation

@visualfc

@visualfc visualfc commented Jun 11, 2025

Copy link
Copy Markdown
Collaborator

build libffi for Emscripten

// https://github.com/libffi/libffi
emconfigure ./configure --host=wasm32-unknown-emscripten --prefix=/usr/local/libffi-wasm
emmake make
emmake make install

support reflect package

PKG_CONFIG_PATH=/usr/local/libffi-wasm/lib/pkgconfig GOOS=js GOARCH=wasm llgo build -tags=nogc -o main.html .

@codecov

codecov Bot commented Jun 11, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.64%. Comparing base (900ae67) to head (ce984d4).
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1144   +/-   ##
=======================================
  Coverage   86.64%   86.64%           
=======================================
  Files          29       29           
  Lines        7343     7343           
=======================================
  Hits         6362     6362           
  Misses        914      914           
  Partials       67       67           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xushiwei
xushiwei merged commit 26aaa65 into xgo-dev:main Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants