www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18907] New: Support cross-compiling

https://issues.dlang.org/show_bug.cgi?id=18907

          Issue ID: 18907
           Summary: Support cross-compiling
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

DMD is self-contained, and all the source is there to generate code for all
targets.
Can the target selection please be a runtime option?
It would be super handy even when *developing* DMD if it could cross-compile.
I'm working in windows, iterating on DMD, and every few minutes I run some test
compiles and see the windows output, but I'd love to also see the linux output
looks right.
Rather, I have to commit, push somewhere, sync on linux, build it there, and
run my tests.
That's a slow and pointless turnaround, when I'm sure it wouldn't be too hard
for DMD to just accept a --target option, then I could verify both outputs at
the same time from the same place. Save me hours of stuffing about!

So, any takers? :)

--
May 25 2018