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

Produce relocatable code for Rust libraries #10

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tschneidereit
Copy link
Member

Also update to Rust 1.75 toolchain

@tschneidereit tschneidereit force-pushed the reloc-pic-rs branch 2 times, most recently from de612f8 to a305289 Compare January 16, 2024 14:05
… engine

Also produce relocatable code for Rust libraries and update to Rust 1.75 toolchain
Specifically:
 - Support specifying WASI-SDK via file or env var
 - Use Rust Nightly toolchain
 - Let mozbuild manage the host compiler, but take over managing the WASI compiler and sysroot
 - Improve some build config settings
@guybedford
Copy link
Contributor

How close is this being ready to merge?

@guybedford
Copy link
Contributor

I just tried to build this locally but get the following error:

In file included from Unified_cpp_js_src_frontend3.cpp:2:
In file included from /Users/gbedford/Projects/spidermonkey-wasi-embedding/gecko-dev/js/src/frontend/FrontendContext.cpp:13:
/Users/gbedford/Projects/spidermonkey-wasi-embedding/obj-debug/dist/system_wrappers/pthread.h:3:15: fatal error: 'pthread.h' file not found
    3 | #include_next <pthread.h>
      |               ^~~~~~~~~~~
1 error generated.
make[3]: *** [Unified_cpp_js_src_frontend3.o] Error 1
make[2]: *** [js/src/frontend/target-objects] Error 2
make[1]: *** [compile] Error 2
make: *** [default] Error 2

If there are changes that can be made to get this ready to land let me know.

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.

2 participants