Skip to content

Add support for -funified-lto #5047

@Temtaime

Description

@Temtaime

Hello !
I built my C library with -flto=full flag, and i pass -flto=full to ldc too.

But on the link stage i get this error:
ld.lld: error: unified LTO compilation must use compatible bitcode modules (use -funified-lto)

Any way ldc supports unified lto ?
I checked that i do not pass -funified-lto to clang and there's no option in ld.lld to disable unified lto.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions