September 05, 2015 Re: Generating Javascript or asm.js from LDC? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On Saturday, 5 September 2015 at 15:23:18 UTC, David Nadlinger wrote:
> On 5 Sep 2015, at 17:29, Laeeth Isharc via digitalmars-d-ldc wrote:
>> I guess you would need to implement within LDC js architecture and emscripten OS, so perhaps it's not quite so straightforward...
>
> Just looked at the developer docs you linked, and it seems like they indeed have a custom LLVM fork. The easiest thing to do would probably be to compile LDC against that fork (just point the LLVM_CONFIG CMake variable at their llvm-config binary). Apart from that, not much should be needed per se (apart from adding it as a recognized OS in a couple of places that might report an error otherwise, e.g. in the code that sets the linux/Windows/Darwin/... version definitions).
>
> — David
The thing is they also have a custom clang fork, and I wonder what changes need to be made to the front end (LDC in this case) to fit.
|
Copyright © 1999-2021 by the D Language Foundation