Thread overview
[Issue 18907] Support cross-compiling
May 26, 2018
Manu
May 26, 2018
Jacob Carlborg
May 26, 2018
Manu
May 29, 2018
Andrea Fontana
Aug 02, 2019
Manu
May 20, 2021
Dlang Bot
May 30, 2021
Dlang Bot
May 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18907

--- Comment #1 from Manu <turkeyman@gmail.com> ---
I should also add, this would be very useful for developing, but not JUST for developing.

I have a couple of projects where we generate our windows builds from linux CI
infrastructure. We cross-compile our windows builds from linux, and DMD can't
currently participate in that workflow.
I have used wine to build for windows using DMD from linux in the past, and
that is... definitely less than ideal.

--
May 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18907

Jacob Carlborg <doob@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob@me.com

--- Comment #2 from Jacob Carlborg <doob@me.com> ---
(In reply to Manu from comment #0)

> Rather, I have to commit, push somewhere, sync on linux, build it there, and run my tests.

In the meantime there's Windows subsystem for Linux and Docker.

--
May 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18907

--- Comment #3 from Manu <turkeyman@gmail.com> ---
I've been using WSL. It has taken a couple of steps out of the turn-around,
it's still not ideal though.
I'd like to just run the same binary, and I can debug it using the same
debugger I use.

--
May 29, 2018
https://issues.dlang.org/show_bug.cgi?id=18907

Andrea Fontana <trikkuz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trikkuz@gmail.com

--- Comment #4 from Andrea Fontana <trikkuz@gmail.com> ---
I always hoped this. And I hope someone will patch dmd.

--
August 02, 2019
https://issues.dlang.org/show_bug.cgi?id=18907

--- Comment #5 from Manu <turkeyman@gmail.com> ---
This would really make iterating on DMD under windows SOOO MUCH EASIER!

--
May 20, 2021
https://issues.dlang.org/show_bug.cgi?id=18907

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@thewilsonator updated dlang/dmd pull request #12508 "Implement -target" fixing this issue:

- Fix issue 18907: enable cross-compilation with `-target=<triple>`

https://github.com/dlang/dmd/pull/12508

--
May 30, 2021
https://issues.dlang.org/show_bug.cgi?id=18907

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12508 "Implement -target" was merged into master:

- 10688c92e469abf8a8e0951398c1f2e7b32eeaf9 by Nicholas Wilson:
  Fix issue 18907: enable cross-compilation with `-target=<triple>`

https://github.com/dlang/dmd/pull/12508

--