mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Fix no_lto detection in meson and cmake buildsystems (#8486)
* Fix no_lto detection in meson and cmake buildsystems * bump version --------- Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8137a17f31
commit
df989a1bad
@@ -11,9 +11,9 @@ class CMake < Package
|
||||
|
||||
def self.build
|
||||
puts "Additional cmake_options being used: #{@cmake_options.nil? || @cmake_options.empty? ? '<no cmake_options>' : @cmake_options}".orange
|
||||
@crew_cmake_options = no_lto ? CREW_CMAKE_FNO_LTO_OPTIONS : CREW_CMAKE_OPTIONS
|
||||
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run ' : ''
|
||||
system "#{@mold_linker_prefix_cmd}cmake -B builddir -G Ninja #{@crew_cmake_options} #{@cmake_options}"
|
||||
@crew_cmake_options = @no_lto ? CREW_CMAKE_FNO_LTO_OPTIONS : CREW_CMAKE_OPTIONS
|
||||
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
|
||||
system "#{@mold_linker_prefix_cmd} cmake -B builddir -G Ninja #{@crew_cmake_options} #{@cmake_options}"
|
||||
system "#{CREW_NINJA} -C builddir"
|
||||
end
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ class Meson < Package
|
||||
|
||||
def self.build
|
||||
puts "Additional meson_options being used: #{@meson_options.nil? || @meson_options.empty? ? '<no meson_options>' : @meson_options}".orange
|
||||
@crew_meson_options = no_lto ? CREW_MESON_FNO_LTO_OPTIONS : CREW_MESON_OPTIONS
|
||||
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run ' : ''
|
||||
system "#{@mold_linker_prefix_cmd}meson setup #{@crew_meson_options} #{@meson_options} builddir"
|
||||
@crew_meson_options = @no_lto ? CREW_MESON_FNO_LTO_OPTIONS : CREW_MESON_OPTIONS
|
||||
@mold_linker_prefix_cmd = CREW_LINKER == 'mold' ? 'mold -run' : ''
|
||||
system "#{@mold_linker_prefix_cmd} meson setup #{@crew_meson_options} #{@meson_options} builddir"
|
||||
system 'meson configure builddir'
|
||||
system "#{CREW_NINJA} -C builddir"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user