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

Merged blaugold's WASM branch, plus fixes #2069

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

Merged blaugold's WASM branch, plus fixes #2069

wants to merge 4 commits into from

Commits on Jun 14, 2024

  1. Port to emscripten

    (cherry picked from commit 9e3f4d7)
    
    # Conflicts:
    #	C/tests/CMakeLists.txt
    #	C/tests/c4DatabaseTest.cc
    #	LiteCore/Support/Error.cc
    #	LiteCore/Support/FilePath.cc
    #	LiteCore/Support/LogDecoder.cc
    #	LiteCore/Support/Logging.cc
    #	LiteCore/Support/MultiLogDecoder.hh
    #	LiteCore/Support/StringUtil.cc
    #	LiteCore/Support/StringUtil.hh
    #	LiteCore/Support/ThreadUtil.cc
    #	LiteCore/tests/DataFileTest.cc
    #	LiteCore/tests/SQLiteFunctionsTest.cc
    #	REST/tests/RESTListenerTest.cc
    blaugold authored and snej committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    32b3fa4 View commit details
    Browse the repository at this point in the history
  2. clang-tidy

    snej committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    105e4cb View commit details
    Browse the repository at this point in the history
  3. Got tests to run w/emscripten! (3 failures)

    CppTests:
    test cases:    499 |    496 passed | 3 failed
    assertions: 682799 | 682794 passed | 5 failed
    
    failed tests:
        >>> Query Functions
        >>> RealClockSource
        >>> Continuous Fast Push
    
    C4Tests:
    All tests passed (791941 assertions in 155 test cases)
    snej committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    1d7d87f View commit details
    Browse the repository at this point in the history
  4. Tweaked Emscripten build flags to make WASM smaller

    - Defined the compile/link flags as variables and reuse them
    - Enabled LTO
    - Forced -Os, since build type MinSizeRel doesn't seem to do anything
    - Changed build type to Release, since the debug symbols add ~50MB to
      the .wasm files
    snej committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    0c5efc7 View commit details
    Browse the repository at this point in the history