Skip to content

Fix throwing exceptions under Emscripten#155

Merged
cpsievert merged 2 commits intorstudio:mainfrom
georgestagg:emscripten-exceptions
Jun 30, 2025
Merged

Fix throwing exceptions under Emscripten#155
cpsievert merged 2 commits intorstudio:mainfrom
georgestagg:emscripten-exceptions

Conversation

@georgestagg
Copy link
Contributor

By default, C++ exceptions are disabled in Emscripten. They are opt-in by setting a particular flag at compile and link time.

The webR R package cross-compiler, {rwasm}, adds the required flag at link time, but we also need to provide it at compile time when building libsass. This PR makes that change.

Fixes r-wasm/webr#525.

@georgestagg
Copy link
Contributor Author

cc @gadenbuie @wch

Tagging @cpsievert for review.

@cpsievert cpsievert requested a review from Copilot June 30, 2025 14:55

This comment was marked as resolved.

@cpsievert
Copy link
Contributor

Thanks!

@cpsievert cpsievert merged commit a8d149b into rstudio:main Jun 30, 2025
17 checks passed
@georgestagg georgestagg deleted the emscripten-exceptions branch July 8, 2025 08:37
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.

Error in sass_compile_data_context()

3 participants