www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] A Rust tool for Cross-compilation

reply Adil <adil aidezigns.com> writes:
Found this on Reddit.

http://blog.rust-lang.org/2016/05/13/rustup.html

Do you think it's possible to have this in D? It's worth reading 
the article even if we don't plan to build one of our own.
May 15 2016
parent reply Joakim <dlang joakim.fea.st> writes:
On Sunday, 15 May 2016 at 07:46:05 UTC, Adil wrote:
 Found this on Reddit.

 http://blog.rust-lang.org/2016/05/13/rustup.html

 Do you think it's possible to have this in D? It's worth 
 reading the article even if we don't plan to build one of our 
 own.
Of course it's possible, shouldn't be too bad, whether it'll ever get done is another matter. There is dvm, but it's only for dmd right now: https://github.com/jacob-carlborg/dvm
May 15 2016
parent reply w0rp <devw0rp gmail.com> writes:
On Sunday, 15 May 2016 at 15:31:56 UTC, Joakim wrote:
 On Sunday, 15 May 2016 at 07:46:05 UTC, Adil wrote:
 Found this on Reddit.

 http://blog.rust-lang.org/2016/05/13/rustup.html

 Do you think it's possible to have this in D? It's worth 
 reading the article even if we don't plan to build one of our 
 own.
Of course it's possible, shouldn't be too bad, whether it'll ever get done is another matter. There is dvm, but it's only for dmd right now: https://github.com/jacob-carlborg/dvm
I'd love to have a tool for this which used either GCC or LLVM. I tried compiling for arm-none-eabi a while ago, and you could get it working, but it was a bit of a pain getting all of the right tools in place for it. I'd love to be able to juts type a command and have it all just work. I'd really love to have something which generated a DUB config which would cross compile.
May 16 2016
parent Jacob Carlborg <doob me.com> writes:
On 2016-05-16 13:31, w0rp wrote:

 I'd love to have a tool for this which used either GCC or LLVM. I tried
 compiling for arm-none-eabi a while ago, and you could get it working,
 but it was a bit of a pain getting all of the right tools in place for
 it. I'd love to be able to juts type a command and have it all just
 work. I'd really love to have something which generated a DUB config
 which would cross compile.
With LDC it should be fairly straight forward. LDC can already cross-compile, combining that with something something like ELLCC [1] it should be enough to specify the ELLCC as the C compiler. [1] http://ellcc.org -- /Jacob Carlborg
May 16 2016