Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cross-language inlining for sleef-sys #126

Open
gnzlbg opened this issue Sep 3, 2018 · 0 comments
Open

Enable cross-language inlining for sleef-sys #126

gnzlbg opened this issue Sep 3, 2018 · 0 comments
Labels
Enhancement New feature or request P-low Performance Something isn't fast

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Sep 3, 2018

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.
@gnzlbg gnzlbg added Enhancement New feature or request Performance Something isn't fast P-low labels Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request P-low Performance Something isn't fast
Projects
None yet
Development

No branches or pull requests

1 participant