-
I'd like to contribute some code to emscripten, including tests. Usually, to contribute to a project, I do it like this:
Here the process looks to be different, can you describe it in a bit more details? In particular, I have troubles running the tests. Here's what I get by running directly from a cloned repo: ➜ emscripten git:(proxyfs-mmap) test/runner test_loop
posixtestsuite not found (run git submodule update --init?)
Test suites:
['test_core']
Running test_core: (1 tests)
(checking sanity from test runner)
runner: warning: LLVM version for clang executable "/usr/bin/clang" appears incorrect (seeing "14.0", expected "17") [-Wversion-check]
shared:CRITICAL: LLVM has not been built with the WebAssembly backend, clang reports:
... Do I need a setup before running tests? @sbc100 recommended to see https://emscripten.org/docs/contributing/developers_guide.html#developers-guide-setting-up. It's great to have such article, but it's quite confusing.
These things may be obvious for you, but not for a newcomer ;( Please advise a step-by-step way to get emscripten from github, run tests and push the changes. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Emscripten depends on both llvm and on binaryen. The simplest way to get binaries for those tools is it use emsdk. You can configure your local emscripten git checkout to use those either by setting up your own If you want to build llvm and binaryen from source that is also an option but can take a long time and a lof of disk space, and is also unnecessary if you only want to contribute to emscirpten. |
Beta Was this translation helpful? Give feedback.
Emscripten depends on both llvm and on binaryen. The simplest way to get binaries for those tools is it use emsdk.
You can configure your local emscripten git checkout to use those either by setting up your own
.emscripten
config file to point to the emsdk version of these tools, or simply by using the emsdk config file directly withexport EM_CONFIG=/path/to/emsdk/.emscripten
.If you want to build llvm and binaryen from source that is also an option but can take a long time and a lof of disk space, and is also unnecessary if you only want to contribute to emscirpten.