Skip to content

[externals] Bump skia submodule to drop SK_BUILD_FOR_WASM redef#3788

Merged
mattleibow merged 3 commits into
mono:mainfrom
ramezgerges:dev/fix-sk-build-for-wasm-redef
Jul 1, 2026
Merged

[externals] Bump skia submodule to drop SK_BUILD_FOR_WASM redef#3788
mattleibow merged 3 commits into
mono:mainfrom
ramezgerges:dev/fix-sk-build-for-wasm-redef

Conversation

@ramezgerges

@ramezgerges ramezgerges commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Bumps the externals/skia submodule to pick up mono/skia#204, which removes the redundant SK_BUILD_FOR_WASM addition to em++'s -D flags. SkFeatures.h's __EMSCRIPTEN__ branch already defines it, so the GN-side define produced "macro redefined" warnings on every wasm translation unit.

Description of Change

Updates the externals/skia submodule to e1be35b2 (the skiasharp branch tip after mono/skia#204 was merged) and syncs the cgmanifest.json "Main Skia repository reference" commitHash to match. Only the submodule reference and that manifest SHA change.

Bugs Fixed

None.

API Changes

None.

Behavioral Changes

None. Removes a duplicate compile-time define in the wasm build; the macro is still defined by Skia's SkFeatures.h.

Required skia PR

mono/skia#204 (merged)

PR Checklist

  • Has tests — n/a, build-only change (removes a duplicate wasm compile define)
  • Rebased on top of main at time of PR
  • Merged related skia PRs — drop redundant SK_BUILD_FOR_WASM define skia#204
  • Changes adhere to coding standard
  • Updated documentation — n/a

Picks up mono/skia 85aa9d7884 which removes the SK_BUILD_FOR_WASM
addition to em++'s -D flags. SkFeatures.h's __EMSCRIPTEN__ branch
already defines it, so the GN-side define produced "macro redefined"
warnings on every wasm translation unit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 3788

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 3788"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-3788/packages --name skiasharp-pr-3788
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-3788

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@ramezgerges! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@ramezgerges ramezgerges reopened this Apr 28, 2026
@mattleibow

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

mattleibow added a commit to mono/skia that referenced this pull request Jul 1, 2026
[gn] Drop redundant SK_BUILD_FOR_WASM define (#204)

`include/private/base/SkFeatures.h` already defines `SK_BUILD_FOR_WASM`
in its `__EMSCRIPTEN__` branch. The `is_wasm` block in `gn/skia/BUILD.gn`
added the same define to em++'s `-D` flags, so every wasm translation unit
emitted a "macro redefined" warning.

Remove the redundant `defines += [ "SK_BUILD_FOR_WASM" ]` from that block.
The macro is still defined by `SkFeatures.h`, so the wasm build behaves
identically — this only clears the warning noise. No other flags in the
`is_wasm` block are touched.

Consumed by mono/SkiaSharp#3788, which bumps the SkiaSharp `externals/skia`
submodule to this change.

Co-authored-by: Ramez Gerges <ramezragaa@proton.me>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mono/skia#204 was squash-merged into `skiasharp` as e1be35b2, so the
previous PR-branch commit (b789e70f) is now orphaned and off-branch.
Point the `externals/skia` submodule at the canonical `skiasharp` tip
and sync the cgmanifest.json "Main Skia repository reference" commitHash
to match.

The tree at e1be35b2 is identical to b789e70f; only the recorded commit
changes. No upstream milestone change, so the cgmanifest chrome/m151 CVE
tracking entry is left untouched.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow merged commit 93d2dcb into mono:main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants