Survey: Is somebody using the -enable-*/-disable-* command line option pairs?

Johan Engelen via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Apr 14 13:22:37 PDT 2015


On Sunday, 15 March 2015 at 15:39:15 UTC, Dan Olson wrote:
> Because inlining is enabled by default with -O2 and above:
>
> ldc2 -output-s -O0 -enable-inlining xyzzy.d
> ldc2 -output-s -O2 -disable-inlining xyzzy.d

I think this is still possible with the standard bool LLVM
option. It would look like:
   ldc2 -output-s -O0 -inlining=true xyzzy.d
   ldc2 -output-s -O2 -inlining=false xyzzy.d

See http://llvm.org/docs/CommandLine.html#boolean-arguments


More information about the digitalmars-d-ldc mailing list