[[bad mustMatch:]]: error while compiling to wasm

Hüseyin Akbaş huskb.code at gmail.com
Sat Jul 7 07:55:59 UTC 2018

Hi I was trying to build wasm code via ldc and binaryen. I saw 
how to do it in a c++ tutorial.

My source code is:

import std.stdio;

extern(C) int main()
	writeln("Edit source/app.d to start your project.");
   return 0;

I compile with the following:
ldc2 app.d -output-s
s2wasm app.s > app.wast

While compiling to s, everyhing is fine but s2wasm it gives this 
<< set >>
[[bad mustMatch:]]:
	pushq	%rbp

It is something related to the D structure? How can I fix this?


More information about the digitalmars-d-ldc mailing list