D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20804 - Using LTO with LDC generates incorrect static libraries
Summary: Using LTO with LDC generates incorrect static libraries
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: visuald (show other issues)
Version: D2
Hardware: All Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 08:25 UTC by Marcel
Modified: 2021-05-23 12:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Comment 1 Rainer Schuetze 2021-05-23 12:09:10 UTC
seems to work with Visuald 1.1.1 and LDC 1.26.0, when specifying --flto=full as additional command lineoptions.

When using the VC-projects, you'll have to switch to the clang-cl toolchain to get appropriate linker support.

Please specify more details if the problem persists.