Cross-compilation for Linux from Windows using DMD

2022-03-19 Thread Preetpal via Digitalmars-d-learn
Is this supposed to work out of the box (see: [Reddit Post](https://www.reddit.com/r/d_language/comments/sypgaj/dmd_supports_crosscompilation_with_os_switch/))? Trying to cross-compile a hello world program for Linux on Windows with the command **dmd -os=linux main.d** which gives no output

Re: So what is the state of cross-compilation in D?

2018-07-28 Thread Andre Pany via Digitalmars-d
is the ability to easily cross-compile your Go program from any supported OS to any supported OS. So I was wondering what is the story of cross-compilation for different D language compilers? Is it possible to some extent now? Do you guys have interest in it? Basically as far as I understood what makes Go

Re: So what is the state of cross-compilation in D?

2018-07-28 Thread Mike Franklin via Digitalmars-d
OS to any supported OS. So I was wondering what is the story of cross-compilation for different D language compilers? Is it possible to some extent now? Do you guys have interest in it? Basically as far as I understood what makes Go suitable for cross-compilation is their own linker

Re: So what is the state of cross-compilation in D?

2018-01-19 Thread Kagamin via Digitalmars-d
On Friday, 19 January 2018 at 06:53:16 UTC, Rel wrote: As far as I understand I will need a C toolchain that allows cross-compilation to target OS in order to build runtime libraries, is it correct? If you're going to compile the compiler, LLVM is written in C++, so you would have the C

Re: So what is the state of cross-compilation in D?

2018-01-19 Thread Joakim via Digitalmars-d
ng.org/Building_LDC_runtime_libraries > https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412 As far as I understand I will need a C toolchain that allows cross-compilation to target OS in order to build runtime libraries, is it correct? Why is D's runtime library is written in C? I thought that D

Re: So what is the state of cross-compilation in D?

2018-01-19 Thread rikki cattermole via Digitalmars-d
-developers/ldc/pull/2142#issuecomment-304472412 As far as I understand I will need a C toolchain that allows cross-compilation to target OS in order to build runtime libraries, is it correct? Why is D's runtime library is written in C? I thought that D is pretty much capable to have runtime

Re: So what is the state of cross-compilation in D?

2018-01-19 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-19 07:53, Rel wrote: I'd like to cross-compile from Windows machine to Linux and Mac OSX. Where can I get C toolchain that will allow me to cross-compile D's runtime libraries from Windows to Linux and Mac OSX? Here's a Dockerfile that cross-compiles to macOS:

Re: So what is the state of cross-compilation in D?

2018-01-19 Thread Jonathan M Davis via Digitalmars-d
elopers/ldc/pull/2142#issuecomment-304472412 > > As far as I understand I will need a C toolchain that > allows cross-compilation to target OS in order to build > runtime libraries, is it correct? Why is D's runtime library > is written in C? I thought that D is pretty much capable to &

Re: So what is the state of cross-compilation in D?

2018-01-18 Thread Rel via Digitalmars-d
cross-compilation to target OS in order to build runtime libraries, is it correct? Why is D's runtime library is written in C? I thought that D is pretty much capable to have runtime libraries written in D, especially after the introduction of -betterC flag. I'd like to cross-compile from Windows

Re: So what is the state of cross-compilation in D?

2018-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-17 13:06, Rel wrote: Well, to be completely honest with you the only one thing I like about the Go programming language is the ability to easily cross-compile your Go program from any supported OS to any supported OS. So I was wondering what is the story of cross-compilation

Re: So what is the state of cross-compilation in D?

2018-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-17 14:28, Nicholas Wilson wrote: LDC is a cross compiler by default. the `-mtriple` flag tells LDC what arch, OS and cpu to target. `-linker=lld-link` or `-linker=lld` (not really sure of the difference) will use LLVM crosslinker, so provided you have the appropriate libraries to

Re: So what is the state of cross-compilation in D?

2018-01-17 Thread Nicholas Wilson via Digitalmars-d
of cross-compilation for different D language compilers? Is it possible to some extent now? Do you guys have interest in it? Basically as far as I understood what makes Go suitable for cross-compilation is their own linker implementation, and D compilers use current system linker. LDC is a cross

Re: So what is the state of cross-compilation in D?

2018-01-17 Thread Andre Pany via Digitalmars-d
of cross-compilation for different D language compilers? Is it possible to some extent now? Do you guys have interest in it? Basically as far as I understood what makes Go suitable for cross-compilation is their own linker implementation, and D compilers use current system linker. Cross compiling

Re: So what is the state of cross-compilation in D?

2018-01-17 Thread Kagamin via Digitalmars-d
https://wiki.dlang.org/Build_D_for_Android https://wiki.dlang.org/Building_LDC_runtime_libraries https://github.com/ldc-developers/ldc/pull/2142#issuecomment-304472412

So what is the state of cross-compilation in D?

2018-01-17 Thread Rel via Digitalmars-d
Well, to be completely honest with you the only one thing I like about the Go programming language is the ability to easily cross-compile your Go program from any supported OS to any supported OS. So I was wondering what is the story of cross-compilation for different D language compilers

Re: dub cross compilation binary extension

2017-09-29 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 27 September 2017 at 04:08:39 UTC, Joakim wrote: On Tuesday, 26 September 2017 at 17:48:06 UTC, Andre Pany wrote: Hi, I had set up a cross compilation from Windows to Raspberry Pi using LDC and GCC toolchain. Almost everything is working fine. Dub creates a binary which

Re: dub cross compilation binary extension

2017-09-26 Thread Joakim via Digitalmars-d-learn
On Tuesday, 26 September 2017 at 17:48:06 UTC, Andre Pany wrote: Hi, I had set up a cross compilation from Windows to Raspberry Pi using LDC and GCC toolchain. Almost everything is working fine. Dub creates a binary which is runnable on the Raspberry Pi. There is only 1 small issue. Dub

dub cross compilation binary extension

2017-09-26 Thread Andre Pany via Digitalmars-d-learn
Hi, I had set up a cross compilation from Windows to Raspberry Pi using LDC and GCC toolchain. Almost everything is working fine. Dub creates a binary which is runnable on the Raspberry Pi. There is only 1 small issue. Dub creates the executable with the windows file extension "

Re: [OT] A Rust tool for Cross-compilation

2016-05-17 Thread Jacob Carlborg via Digitalmars-d
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

Re: [OT] A Rust tool for Cross-compilation

2016-05-16 Thread w0rp via Digitalmars-d
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

Re: [OT] A Rust tool for Cross-compilation

2016-05-15 Thread Joakim via Digitalmars-d
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

[OT] A Rust tool for Cross-compilation

2016-05-15 Thread Adil via Digitalmars-d
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.

Re: Cross-compilation

2012-08-29 Thread Marco Leise
Am Tue, 28 Aug 2012 11:37:48 +0200 schrieb sidhu gaikwad sidhugaikw...@gmail.con: On Tuesday, 28 August 2012 at 09:21:55 UTC, Chris wrote: Probably this question has been asked and answered before, but I wonder if there is a way to cross-compile D code so that you can work on one

Cross-compilation

2012-08-28 Thread Chris
Probably this question has been asked and answered before, but I wonder if there is a way to cross-compile D code so that you can work on one platform and simultaneously create code for other platforms. In my case it would be Mac to Linux. I can imagine that there are a lot of dependency

Re: Cross-compilation

2012-08-28 Thread sidhu gaikwad
On Tuesday, 28 August 2012 at 09:21:55 UTC, Chris wrote: Probably this question has been asked and answered before, but I wonder if there is a way to cross-compile D code so that you can work on one platform and simultaneously create code for other platforms. In my case it would be Mac to