LDC to WASM failed?
kinke
noone at nowhere.com
Sat May 11 18:13:25 UTC 2019
On Saturday, 11 May 2019 at 16:44:20 UTC, KnightMare wrote:
> well, in binary representation wasm.wasm I dont see any text
> "add"
There was a breaking change with LLD 8, requiring to use
`-L--export-dynamic` in the LDC command-line. Is/will be fixed:
https://github.com/ldc-developers/ldc/pull/3072
> 2nd question:
> I understand that I cant import anything from Phobos yet, isnt
> it?
You can, if it's templates only without any dependency on C
runtime and non-templated druntime+Phobos. See the touched test
in the PR above for an example.
> does LDC will give some wasm runtime in future?
The compiler won't, but the community might; you're not the only
one interested in some form of baremetal libraries, e.g., see
https://forum.dlang.org/thread/szfzoaoizbgjzfpckmze@forum.dlang.org.
More information about the digitalmars-d-ldc
mailing list