Bug #10658 2007-03-17 13:27

foboldfky

CB breaking DMD compiler options

Summary:

CB's compiler support for DMD is storing compiler options wrongly, making it impossible to add flags to the compiler command line.

Steps to reproduce:

Make a "D Application" project.

Open up "Project build options", "Digital Mars D Compiler", "Compiler Settings", "Other options". Project/Debug/Release configuration, it doesn't matter.

Put anything in the text box. Either click "Ok", or move to another configuration and click "Yes" when it asks if you wish to save. Go back to "Other options". Note that it is now empty. Click on the "#defines" tab. Note that everything you typed in the "Other options" box is now in there. Also realise that DMD doesn't *have* #defines :P

Because of this, there doesn't appear to be *any* way of passing command-line arguments to the compiler, which is sorta deal-breaking for me.

Category
Application::Interface
Group
 
Status
Closed
Close date
2007-03-31 12:53
Assigned to
afb
foboldfky 2007-03-17 13:28

Whoops. Forgot to mention, I'm using nightly svn build 3683 under Windows XP, unicode version.

afb 2007-03-28 12:18

Confirmed (under Linux). Strangely, it only happens with DMD (not GDC)

afb 2007-03-28 12:35

This bug is because the switch for "defines" is set to blank, so it gets all the remaining options after the other switches. For GDC it is set to -D, but that's used for Ddoc with DMD. Will set it to something odd instead.

When CB supports the D language proper, this issue should go away.

afb 2007-03-31 12:53

Fixed in revision 3802 (using versions for the defines tab)

foboldfky 2007-03-31 13:07

Many thanks.