Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable building Onigmo in WebAssembly for Opal-compatible regular expressions #153

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ronaldtse
Copy link

This pull request enables building Onigmo in WebAssembly via WASI.

The changes it proposes are minimal and only specific to the WebAssembly build. This work is being used inside the opal-webassembly gem to enable regular expression compatibility in the browser and Opal-compiled Ruby. This was originally developed to allow Interscript rules to be run in the browser.

This is a contribution from Ribose Inc. Special thanks to @webdev778 for the great work.

@codecov-io
Copy link

codecov-io commented Oct 8, 2020

Codecov Report

Merging #153 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
- Coverage   82.86%   82.79%   -0.08%     
==========================================
  Files          63       63              
  Lines       12613    12646      +33     
==========================================
+ Hits        10452    10470      +18     
- Misses       2161     2176      +15     
Impacted Files Coverage Δ
regparse.c 91.48% <ø> (ø)
testc.c 96.03% <0.00%> (-1.90%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a06a42b...199c023. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.974% when pulling 199c023 on interscript:master into a06a42b on k-takata:master.

# Download WASI-SDK from:
# https://github.com/WebAssembly/wasi-sdk/releases

if [ $BUILD == 'wasi' ]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ $BUILD == 'wasi' ]; then
if [ "$BUILD" == 'wasi' ]; then

to avoid the error build-wasm.sh: line 4: [: ==: unary operator expected when $BUILD is empty

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.

5 participants