aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Add x86_64 support for dub builds #481

Open etcimon opened 10 years ago

etcimon commented 10 years ago

It would be nice to be able to select the platform in the drop-down, these are the command line options for dub:

--arch=x86 --arch=x86_64

aBothe commented 10 years ago

Gotta see how to add them to the drop downs. Are there further architectures supported?

etcimon commented 10 years ago

Are there further architectures supported?

Not that I know of. However, you should combine it with LDC/DMD/GDC choices with

LDC x86 => --arch=x86 --compiler=ldc2 LDC x86_64 => --arch=x86_64 --compiler=ldc2 DMD x86 => --arch=x86 --compiler=dmd DMD x86_64 => --arch=x86_64 --compiler=dmd etc.

aBothe commented 10 years ago

Which drop-down do you mean? the second from the left in the upper menu bar in XS which tends to stay grayed-out?

etcimon commented 10 years ago

yes

aBothe commented 10 years ago

In here (https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ConfigurationComboBox.cs#L58 ), the second drop-down becomes added. I didn't know that this is only for selecting target runtimes of some special c# projects, not any kinds of project platforms or so. I could try to add a third combo box for dub projects only, but would that make any sense as you normally don't specify anything on the dub command line but exclusively in the dub.json? And would others tend to use it? I'd rather create sub configurations which handle adding custom flags to the compiler or so.

Orvid commented 10 years ago

Wouldn't you need to do the same for Mono-d projects as well?

aBothe commented 10 years ago

In which way? Enable cross-compiles? Tbh, there are more important things to handle, imho :P