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

WIP: First baby steps towards baremetal-druntime/Phobos without C libs dependency #2787

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kinke
Copy link
Member

@kinke kinke commented Jul 21, 2018

When compiling druntime/Phobos for WebAssembly, don't compile

  • C parts
  • gc.*
  • rt.*

and disable (or adapt) some druntime and Phobos modules, e.g.:

  • core.stdc.* (except for primitives like memcpy, memset, memcmp, malloc, calloc, free)
  • core.sync.*
  • etc.c.*
  • core.thread
  • core.time

This gets (remaining) druntime to compile, e.g., via

ldc-build-runtime --targetSystem="WebAssembly" --dFlags="-w;-mtriple=wasm32-unknown-unknown-wasm"

About 30 of ~140 Phobos modules still fail to compile (use COMPILE_ALL_D_FILES_AT_ONCE=OFF to build them separately). Linking errors are presumably also still likely to happen.

When compiling druntime/Phobos for WebAssembly, don't compile

* C parts
* gc.*
* rt.*

and disable (or adapt) some druntime and Phobos modules, e.g.:

* core.stdc.* (except for primitives like memcpy, memset, memcmp,
  malloc, calloc, free)
* core.sync.*
* etc.c.*
* core.thread
* core.time

This gets (remaining) druntime to compile, e.g., via

ldc-build-runtime --targetSystem="WebAssembly" --dFlags="-w;-mtriple=wasm32-unknown-unknown-wasm"

About 30 of ~140 Phobos modules still fail to compile. Linking errors are
presumably also still likely to happen.
@kinke kinke changed the title WIP: First baby steps towards baremetal-druntime without C libs dependency WIP: First baby steps towards baremetal-druntime/Phobos without C libs dependency Jul 22, 2018
@kinke kinke mentioned this pull request Jul 30, 2018
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.

1 participant