There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ?
Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
November 05, 2021 Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
November 05, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luis | On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote: >There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ? Wine 😎 |
November 05, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Imperatorn | On Friday, 5 November 2021 at 18:13:03 UTC, Imperatorn wrote: >On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote: >There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ? Wine 😎 Ideally should be something like |
November 05, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luis | On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote: >There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ? I don't know if it is possible with dmd. But with LDC you can use mtriple. |
November 05, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luis | On Friday, 5 November 2021 at 18:23:29 UTC, Luis wrote: >On Friday, 5 November 2021 at 18:13:03 UTC, Imperatorn wrote: >On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote: >There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ? Wine 😎 Ideally should be something like |
November 05, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luis | On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote: >There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ? https://forum.dlang.org/thread/qnsbjdamttlklurnplhx@forum.dlang.org |
November 07, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Imperatorn | If i remember correctly, all you have to do is:
|
November 07, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to russhy | On Sunday, 7 November 2021 at 22:19:08 UTC, russhy wrote: >If i remember correctly, all you have to do is:
Is this information on dub.pm? If not, we should add it. 🌟 |
November 08, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Imperatorn |
On 08/11/2021 11:34 AM, Imperatorn wrote:
> On Sunday, 7 November 2021 at 22:19:08 UTC, russhy wrote:
>> If i remember correctly, all you have to do is:
>>
>> dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2
>
> Is this information on dub.pm? If not, we should add it. 🌟
This is compiler specific.
The arch triple is only supported for ldc. If you tried that with gdc it would error out.
|
November 08, 2021 Re: Crosscompile to Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | On Monday, 8 November 2021 at 01:16:25 UTC, rikki cattermole wrote: > > On 08/11/2021 11:34 AM, Imperatorn wrote: >> On Sunday, 7 November 2021 at 22:19:08 UTC, russhy wrote: >>> If i remember correctly, all you have to do is: >>> >>> dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2 >> >> Is this information on dub.pm? If not, we should add it. 🌟 > > This is compiler specific. > > The arch triple is only supported for ldc. If you tried that with gdc it would error out. It should work with the last version of DMD : https://dlang.org/changelog/2.098.0.html#target |