www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LDC, GDC command line args

reply Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
I've been googling for a comprehensive list of LDC and GDC command
line args for ages. I can't find one.

I have had to download and install both compilers just to run the --help.

Can these compilers please both have such a document in an obvious
accessible place like DMD has?
Sep 30 2016
next sibling parent reply NX <nightmarex1337 hotmail.com> writes:
There is one for GDC[1], couldn't find anything for LDC.

[1] https://wiki.dlang.org/GDC/Using_GDC
Sep 30 2016
parent Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
How did you get there? Even knowing it exists, I can't find a path to
that page from other pages...

Is this complete and up to date?
I have '-fdeprecated' in some existing makefiles, but this doc says
'-Wdeprecated' is the flag... not sure which is correct? :/
Also, there seems to be a lot of flags missing:
  deprecated as error
  deprecated as warning
  boundscheck=safeonly
  emit coverage
  emit deps
  profile, profile=gc
  addmain



On 30 September 2016 at 22:36, NX via Digitalmars-d
<digitalmars-d puremagic.com> wrote:
 There is one for GDC[1], couldn't find anything for LDC.

 [1] https://wiki.dlang.org/GDC/Using_GDC
Sep 30 2016
prev sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Friday, 30 September 2016 at 12:16:14 UTC, Manu wrote:
 I've been googling for a comprehensive list of LDC and GDC 
 command line args for ages. I can't find one.

 I have had to download and install both compilers just to run 
 the --help.

 Can these compilers please both have such a document in an 
 obvious accessible place like DMD has?
Just added to https://wiki.dlang.org/Using_LDC
Sep 30 2016
parent reply Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
Perfect! How can we protect against this going stale?

On 30 September 2016 at 23:23, Nicholas Wilson via Digitalmars-d
<digitalmars-d puremagic.com> wrote:
 On Friday, 30 September 2016 at 12:16:14 UTC, Manu wrote:
 I've been googling for a comprehensive list of LDC and GDC command line
 args for ages. I can't find one.

 I have had to download and install both compilers just to run the --help.

 Can these compilers please both have such a document in an obvious
 accessible place like DMD has?
Just added to https://wiki.dlang.org/Using_LDC
Sep 30 2016
next sibling parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Friday, 30 September 2016 at 14:02:36 UTC, Manu wrote:
 Perfect! How can we protect against this going stale?

 On 30 September 2016 at 23:23, Nicholas Wilson via 
 Digitalmars-d <digitalmars-d puremagic.com> wrote:
 On Friday, 30 September 2016 at 12:16:14 UTC, Manu wrote:
 I've been googling for a comprehensive list of LDC and GDC 
 command line args for ages. I can't find one.

 I have had to download and install both compilers just to run 
 the --help.

 Can these compilers please both have such a document in an 
 obvious accessible place like DMD has?
Just added to https://wiki.dlang.org/Using_LDC
easiest way would be to write a script to parse the output of ldc --help and print out as a table in mediawiki syntax (I did the current addition manually). Shouldn't be too hard, but I don't have much time atm.
Sep 30 2016
prev sibling parent David Nadlinger <code klickverbot.at> writes:
On Friday, 30 September 2016 at 14:02:36 UTC, Manu wrote:
 Perfect! How can we protect against this going stale?
Don't; just use `ldc2 -help`. This is the perfect example of a problem that doesn't need a solution. Downloading and extracting the binary package (or installing the distro package) is easy enough. — David
Sep 30 2016