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

Support b_lto with clang-cl and lld-link #13095

Open
Helyos96 opened this issue Apr 15, 2024 · 1 comment
Open

Support b_lto with clang-cl and lld-link #13095

Helyos96 opened this issue Apr 15, 2024 · 1 comment

Comments

@Helyos96
Copy link

Helyos96 commented Apr 15, 2024

Describe the bug
When using clang-cl and lld-link, b_lto is not recognized by meson.

$ meson configure -Db_lto=true

ERROR: Unknown options: "b_lto"

Expected behavior
clang-cl and lld-link supporting link-time optimization, meson should be able to plug it in too.

system parameters

  • Windows 11, using CC=clang-cl; CXX=clang-cl (lld-link is set as the default linker)
  • Python 3.11.2
  • meson 1.4.0
@dcbaker
Copy link
Member

dcbaker commented Apr 15, 2024

We support this for the gcc style clang, so adding it to clang-cl should be pretty easy if someone was looking for a good first project on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants