Thread overview |
---|
April 22, 2018 ldc flags for beginner | ||||
---|---|---|---|---|
| ||||
what flags to use so that the intermediate .o files are discared by ldc and only a.out is written to disk |
April 22, 2018 Re: ldc flags for beginner | ||||
---|---|---|---|---|
| ||||
Posted in reply to fevasu | On Sunday, 22 April 2018 at 02:08:40 UTC, fevasu wrote:
> what flags to use so that the intermediate .o files are discared by ldc and only a.out is written to disk
There's no such functionality, the .o files are required as linker input. You can place the object files into some temp dir with `-od` though and remove it after linking.
|
April 22, 2018 Re: ldc flags for beginner | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke | On Sunday, 22 April 2018 at 14:05:53 UTC, kinke wrote:
> On Sunday, 22 April 2018 at 02:08:40 UTC, fevasu wrote:
>> what flags to use so that the intermediate .o files are discared by ldc and only a.out is written to disk
>
> There's no such functionality, the .o files are required as linker input. You can place the object files into some temp dir with `-od` though and remove it after linking.
I stand corrected, there's (hidden) `-cleanup-obj`.
|
April 22, 2018 Re: ldc flags for beginner | ||||
---|---|---|---|---|
| ||||
Posted in reply to fevasu | On Sunday, 22 April 2018 at 02:08:40 UTC, fevasu wrote:
> what flags to use so that the intermediate .o files are discared by ldc and only a.out is written to disk
You can also use rdmd with ldc, if that makes things easier.
|
Copyright © 1999-2021 by the D Language Foundation