-
Notifications
You must be signed in to change notification settings - Fork 32
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
Merged blaugold's WASM branch, plus fixes #232
base: master
Are you sure you want to change the base?
Conversation
(cherry picked from commit e5560e9)
@@ -558,6 +558,8 @@ namespace fleece { | |||
auto offset = seconds(-s); | |||
#elif defined(__DARWIN_UNIX03) || defined(__ANDROID__) || defined(_XOPEN_SOURCE) || defined(_SVID_SOURCE) | |||
auto offset = seconds(-timezone); | |||
#elif defined(__EMSCRIPTEN__) | |||
auto offset = seconds(timezone); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this negated on purpose? Does ECMAScript somehow change the functionality here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was necessary to make the tests pass, but it seems like a bug in Emscripten which implements all these UNIX APIs. Not sure what the current behavior is, though.
Also none of this builds at all on Windows, is that known? |
With the latest emsdk it works on Ubuntu but the tests abort with the following:
|
Are there any updates on this? |
I think it would be OK to merge this, since it causes no real changes in "normal" supported builds. The conflicts are probably easy to resolve. |
Cherry-picked @blaugold 's branch that adds WASM support via emscripten.
Made a few minor changes to get it to build again.
Added a Makefile to simplify (all types of) builds.