Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 15, 2020 How to run program with "dmd -i" compiler swich ? | ||||
---|---|---|---|---|
| ||||
Hi, For some unknown reasons, dub is not working for me. But i can build my program with "dmd -i". But i would like to know if there is any code to run my program with "dmd -i". Note : "rdmd" is also working but it creates the exe file in temp directory, so my AV is catching it every time. Its annoying. Is it possible to instruct rdmd to create executable in somewhere else ? |
May 15, 2020 Re: How to run program with "dmd -i" compiler swich ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vinod K Chandran | use the -run switch to dmd. Make sure it and te d file name are the LAST arguments. dmd -i other_dmd_args_you_need -run yourfile.d |
May 15, 2020 Re: How to run program with "dmd -i" compiler swich ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vinod K Chandran | On Friday, 15 May 2020 at 14:09:00 UTC, Vinod K Chandran wrote: > Hi, > For some unknown reasons, dub is not working for me. But i can build my program with "dmd -i". But i would like to know if there is any code to run my program with "dmd -i". > Note : "rdmd" is also working but it creates the exe file in temp directory, so my AV is catching it every time. Its annoying. Is it possible to instruct rdmd to create executable in somewhere else ? https://dlang.org/rdmd.html You could use --temp-dir or specify the output manually with -of https://dlang.org/dmd-linux.html#switch-of |
May 15, 2020 Re: How to run program with "dmd -i" compiler swich ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Friday, 15 May 2020 at 14:29:38 UTC, Adam D. Ruppe wrote:
> use the -run switch to dmd. Make sure it and te d file name are the LAST arguments.
>
>
> dmd -i other_dmd_args_you_need -run yourfile.d
Thank you for the reply. Let me try. :)
|
May 15, 2020 Re: How to run program with "dmd -i" compiler swich ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Friday, 15 May 2020 at 18:22:47 UTC, Seb wrote:
> On Friday, 15 May 2020 at 14:09:00 UTC, Vinod K Chandran wrote:
>> Hi,
>> For some unknown reasons, dub is not working for me. But i can build my program with "dmd -i". But i would like to know if there is any code to run my program with "dmd -i".
>> Note : "rdmd" is also working but it creates the exe file in temp directory, so my AV is catching it every time. Its annoying. Is it possible to instruct rdmd to create executable in somewhere else ?
>
> https://dlang.org/rdmd.html
>
> You could use --temp-dir or specify the output manually with -of
>
> https://dlang.org/dmd-linux.html#switch-of
Thank you for the reply. Let me check it. :)
|
Copyright © 1999-2021 by the D Language Foundation