rdmd configuration files

Jonathan Marler via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 11 15:04:05 PDT 2016


On Thursday, 11 August 2016 at 21:58:35 UTC, Chris Wright wrote:
> On Thu, 11 Aug 2016 20:44:12 +0000, Lodovico Giaretta wrote:
>> In file rdmd_wrapper.sh:
>> rdmd -my-special -command-line -parameters $*
>> 
>> When you call it this way:
>> ./rdmd_wrapper mymodule.d
>
> You can add parameters inside the file itself:
>
> #!/usr/bin/rdmd --shebang -m32 -d -I/opt/vibed/source
> void main() {}
>
> Maybe not ideal but it works.

This does work when you use rdmd myscript.d does it?  Only when 
you run ./myscript.d?


More information about the Digitalmars-d mailing list