mesonbuild/meson

Support b_lto with clang-cl and lld-link

已關閉

#13,095 建立於 2024年4月15日

 (1 則留言) (0 個反應) (0 位負責人)Python (1,465 個分叉)batch import
OS:windowscompilersenhancementgood first issue

倉庫指標

星標
 (4,978 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南