Skip to content

Enable cross-language inlining for sleef-sys #126

Open
@gnzlbg

Description

@gnzlbg

See rust-lang/rust#53031 (comment)

  • compile you're C code with clang 7 and -flto=thin,
  • make sure that you are using LLD as your linker (e.g. with -Clinker=clang -Clink-arg=-fuse-ld=lld,
  • add -Zcross-lang-lto -Ccodegen-units=1 to your RUSTFLAGS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions