Closed
Conversation
Setting this define enables oniguruma to build for wasm32-unknown-unknown target under clang-8.
- Unwrap env variables only when required. - Handle cases where `CARGO_CFG_TARGET_FAMILY` is not set. There is no need to unwrap this env var since we are only using it to optionally set some compiler flags. - For wasm builds, define `ONIG_DISABLE_DIRECT_THREADING`. This is a new macro in oniguruma which disables computed gotos, which are unsupported by clang-8 when compiling to wasm targets. - Override `ONIG_EXTERN` to set function visibility for wasm builds. By default, functions are not exported under wasm targets. This flag ensures all functions in the static onig library are marked exported. - Set `-fvisibility=default` for bindgen runs on wasm targets.
Contributor
|
@iwillspeak this is my current diff. I've been running this branch without issue for a while. Sorry to ghost before. |
Collaborator
Author
|
Nice. I’ll try and Make some time today to review this. Looks good from a first glance though. Thanks. |
Merged
Collaborator
Author
|
Superseded by #147. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-open #115 to track WASM support