Remove CREW_MESON_FNO_LTO_OPTIONS (#9973)

This commit is contained in:
Maximilian Downey Twiss
2024-06-15 23:33:31 +10:00
committed by GitHub
parent 659ae6eed6
commit 3104954ef5
4 changed files with 13 additions and 42 deletions

View File

@@ -5,7 +5,7 @@ class Meson < Package
def self.build
puts "Additional meson_options being used: #{@pre_meson_options.nil? ? '<no pre_meson_options>' : @pre_meson_options} #{@meson_options.nil? ? '<no meson_options>' : @meson_options}".orange
@crew_meson_options = @no_lto ? CREW_MESON_FNO_LTO_OPTIONS : CREW_MESON_OPTIONS
@crew_meson_options = @no_lto ? CREW_MESON_OPTIONS.sub('-Db_lto=true', '-Db_lto=false') : CREW_MESON_OPTIONS
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
system "#{@pre_meson_options} #{@mold_linker_prefix_cmd} meson setup #{@crew_meson_options} #{@meson_options} builddir"
system 'meson configure --no-pager builddir'