Anyone tried to emscripten a D/SDL game?

Sebastien Alaiwan via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 5 11:37:00 PDT 2017


On Monday, 5 June 2017 at 10:48:54 UTC, Johan Engelen wrote:
> On Monday, 5 June 2017 at 05:22:44 UTC, Sebastien Alaiwan wrote:
>>
>> The whole simplified toolchain and example project live here: 
>> https://github.com/Ace17/dscripten
>
> Are you planning on upstreaming some of your work to LDC? 
> Please do! :-)

Don't let the small size of the LDC patch from dscripten deceive 
you ; it mangles LDC in the easiest possible way to adapt it to 
the quirks of emscripten-fastcomp (the LLVM fork).
(the official LLVM branch doesn't even declare the 
asmjs/Emscripten triples).

At this point, I think emscripten-fastcomp might be on the go ; 
especially if the WebAssembly backend from the official LLVM 
branch becomes widely used (at this point, I'll probably ditch 
emscripten-fastcomp from dscripten, to use WebAssembly instead).

Some stuff that could be easily upstreamed in a clean 
non-emscripten specific way:
- allowing to disable the build of phobos and druntime from the 
cmake build.
- allowing to disable the build of the debug information 
generator.
- allowing to disable the build of the tests.




More information about the Digitalmars-d mailing list