Re: Crosscompile to Windows

2021-11-08 Thread Luis via Digitalmars-d-learn
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

Re: Crosscompile to Windows

2021-11-08 Thread rikki cattermole via Digitalmars-d-learn
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#target It won't. https://github.com/dlang/dub/blob/master/source/dub/compilers/dmd.d#L111

Re: Crosscompile to Windows

2021-11-07 Thread rikki cattermole via Digitalmars-d-learn
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

Re: Crosscompile to Windows

2021-11-07 Thread Imperatorn via Digitalmars-d-learn
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. 

Re: Crosscompile to Windows

2021-11-07 Thread russhy via Digitalmars-d-learn
If i remember correctly, all you have to do is: dub build --arch=x86_64-pc-windows-msvc --compiler=ldc2

Re: Crosscompile to Windows

2021-11-05 Thread Imperatorn via Digitalmars-d-learn
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/qnsbjdamttlklurnp...@forum.dlang.org

Re: Crosscompile to Windows

2021-11-05 Thread Imperatorn via Digitalmars-d-learn
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

Re: Crosscompile to Windows

2021-11-05 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
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

Re: Crosscompile to Windows

2021-11-05 Thread Luis via Digitalmars-d-learn
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 `dub build -target=x64-windows` or

Crosscompile to Windows

2021-11-05 Thread Luis via Digitalmars-d-learn
There is a obvious way to crosscompile a dub project to Windows from a Linux dev machine ?

Re: Crosscompile to Windows

2021-11-05 Thread Imperatorn via Digitalmars-d-learn
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 