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:
Satadru Pramanik, DO, MPH, MEng
2023-06-22 16:03:21 -04:00
committed by GitHub
parent a833795056
commit d5d2d5551e
19 changed files with 54 additions and 59 deletions

View File

@@ -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

View File

@@ -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