mesonbuild/meson

Support b_lto with clang-cl and lld-link

Geschlossen

#13.095 geöffnet am 15.04.2024

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (1.465 Forks)batch import
OS:windowscompilersenhancementgood first issue

Repository-Metriken

Stars
 (4.978 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 139T 13h) (51 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide