Issue 19329 - pragms(lib) and pragma(linkerDirective) can emit duplicate entries to the object
Summary: pragms(lib) and pragma(linkerDirective) can emit duplicate entries to the object
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2018-10-23 17:59 UTC by Manu
Modified: 2024-09-18 09:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manu 2018-10-23 17:59:55 UTC
If the same lib or directive are added twice, duplicates are emit to the object file.
The linker text list should be de-duplicated before writing out.
Comment 1 Dlang Bot 2021-03-25 11:19:46 UTC
@thewilsonator created dlang/dmd pull request #12308 "Fix issue 19329 pragms(lib) and pragma(linkerDirective) can emit dupl…" fixing this issue:

- Fix issue 19329 pragms(lib) and pragma(linkerDirective) can emit duplicate entries to the object

https://github.com/dlang/dmd/pull/12308
Comment 2 Dlang Bot 2024-09-18 09:39:26 UTC
@thewilsonator updated dlang/dmd pull request #16849 "Do not emit duplicate string for `pragma([lib|linkerDirective])`" fixing this issue:

- Fix bugzilla Issue 19329: Do not emit duplicate string for `pragma([lib|linkerDirective])`

https://github.com/dlang/dmd/pull/16849