Skip to content

Build js/wasm with emscripten - #1123

Merged
xushiwei merged 3 commits into
xgo-dev:mainfrom
cpunion:wasm-emscripten1
May 17, 2025
Merged

Build js/wasm with emscripten#1123
xushiwei merged 3 commits into
xgo-dev:mainfrom
cpunion:wasm-emscripten1

Conversation

@cpunion

@cpunion cpunion commented May 16, 2025

Copy link
Copy Markdown
Collaborator

TODO: Need parameters rewriting to compatible C ABI

  • Build js/wasm with emscripten
    • Build wasm with wasip1: GOOS=wasip1 GOARCH=wasm llgo build -o hello.wasm .
    • Build wasm with html/js: GOOS=js GOARCH=wasm llgo build -o hello.html .
    • Build wasm: GOOS=js GOARCH=wasm llgo build -o hello.wasm .
image

@codecov

codecov Bot commented May 16, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 44.44444% with 65 lines in your changes missing coverage. Please review.

Project coverage is 86.64%. Comparing base (9203c36) to head (fd1def7).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
internal/crosscompile/cosscompile.go 44.44% 63 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1123      +/-   ##
==========================================
- Coverage   87.35%   86.64%   -0.72%     
==========================================
  Files          29       29              
  Lines        7228     7343     +115     
==========================================
+ Hits         6314     6362      +48     
- Misses        849      914      +65     
- Partials       65       67       +2     

☔ 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 9b28d2a into xgo-dev:main May 17, 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