mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add no_lto (#8436)
* Add no_lto * add xorg_proto update * update libepoxy as no_lto example * add no_lto to packages * move no_lto
This commit is contained in:
committed by
GitHub
parent
a833795056
commit
d5d2d5551e
@@ -11,7 +11,8 @@ class CMake < Package
|
||||
end
|
||||
|
||||
def self.build
|
||||
system "cmake -B builddir -G Ninja #{CREW_CMAKE_OPTIONS} #{@cmake_options}"
|
||||
@crew_cmake_options = no_lto ? CREW_CMAKE_FNO_LTO_OPTIONS : CREW_CMAKE_OPTIONS
|
||||
system "cmake -B builddir -G Ninja #{@crew_cmake_options} #{@cmake_options}"
|
||||
system "#{CREW_NINJA} -C builddir"
|
||||
end
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ class Meson < Package
|
||||
end
|
||||
|
||||
def self.build
|
||||
system "meson #{CREW_MESON_OPTIONS} #{@meson_options} builddir"
|
||||
@crew_meson_options = no_lto ? CREW_MESON_FNO_LTO_OPTIONS : CREW_MESON_OPTIONS
|
||||
system "meson #{@crew_meson_options} #{@meson_options} builddir"
|
||||
system 'meson configure builddir'
|
||||
system "#{CREW_NINJA} -C builddir"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user