digitalmars.D.learn - Crosscompile to Windows
- Luis (2/2) Nov 05 2021 There is a obvious way to crosscompile a dub project to Windows
- Imperatorn (2/4) Nov 05 2021 Wine 😎
- Luis (4/8) Nov 05 2021 Ideally should be something like `dub build -target=x64-windows`
- Imperatorn (2/11) Nov 05 2021 https://wiki.dlang.org/Cross-compiling_with_LDC
- Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= (4/6) Nov 05 2021 I don't know if it is possible with dmd. But with LDC you can use
- Imperatorn (2/4) Nov 05 2021 https://forum.dlang.org/thread/qnsbjdamttlklurnplhx@forum.dlang.org
- russhy (2/2) Nov 07 2021 If i remember correctly, all you have to do is:
- Imperatorn (2/4) Nov 07 2021 Is this information on dub.pm? If not, we should add it. 🌟
- rikki cattermole (4/10) Nov 07 2021 This is compiler specific.
- Luis (4/14) Nov 08 2021 It should work with the last version of DMD :
- rikki cattermole (3/5) Nov 08 2021 It won't.
There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ?
Nov 05 2021
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 😎
Nov 05 2021
On Friday, 5 November 2021 at 18:13:03 UTC, Imperatorn wrote:On Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote:Ideally should be something like `dub build -target=x64-windows` or something like. But the dub documentation not say nothing about this.There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ?Wine 😎
Nov 05 2021
On Friday, 5 November 2021 at 18:23:29 UTC, Luis wrote:On Friday, 5 November 2021 at 18:13:03 UTC, Imperatorn wrote:https://wiki.dlang.org/Cross-compiling_with_LDCOn Friday, 5 November 2021 at 18:11:35 UTC, Luis wrote:Ideally should be something like `dub build -target=x64-windows` or something like. But the dub documentation not say nothing about this.There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ?Wine 😎
Nov 05 2021
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. https://wiki.dlang.org/Cross-compiling_with_LDC
Nov 05 2021
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
Nov 05 2021
If i remember correctly, all you have to do is: dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2
Nov 07 2021
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=ldc2Is this information on dub.pm? If not, we should add it. 🌟
Nov 07 2021
On 08/11/2021 11:34 AM, Imperatorn wrote:On Sunday, 7 November 2021 at 22:19:08 UTC, russhy wrote:This is compiler specific. The arch triple is only supported for ldc. If you tried that with gdc it would error out.If i remember correctly, all you have to do is:    dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2Is this information on dub.pm? If not, we should add it. 🌟
Nov 07 2021
On Monday, 8 November 2021 at 01:16:25 UTC, rikki cattermole wrote:On 08/11/2021 11:34 AM, Imperatorn wrote:It should work with the last version of DMD : https://dlang.org/changelog/2.098.0.html#targetOn Sunday, 7 November 2021 at 22:19:08 UTC, russhy wrote:This is compiler specific. The arch triple is only supported for ldc. If you tried that with gdc it would error out.If i remember correctly, all you have to do is:    dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2Is this information on dub.pm? If not, we should add it. 🌟
Nov 08 2021
On 09/11/2021 12:44 PM, Luis wrote:It should work with the last version of DMD : https://dlang.org/changelog/2.098.0.html#targetIt won't. https://github.com/dlang/dub/blob/master/source/dub/compilers/dmd.d#L111
Nov 08 2021