Remove CREW_CMAKE_FNO_LTO_OPTIONS (#9976)

This commit is contained in:
Maximilian Downey Twiss
2025-02-11 09:37:57 +11:00
committed by GitHub
parent d7e8f67f2d
commit 2c346f9ce1
7 changed files with 6 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ class CMake < Package
def self.build
@cmake_build_relative_dir ||= '.'
@crew_cmake_options = @no_lto ? CREW_CMAKE_FNO_LTO_OPTIONS : CREW_CMAKE_OPTIONS
@crew_cmake_options = @no_lto ? CREW_CMAKE_OPTIONS.gsub('-flto=auto', '-fno-lto').sub('-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE', '') : CREW_CMAKE_OPTIONS
puts 'Additional cmake options being used:'.orange
method_list = methods.grep(/cmake_/).delete_if { |i| send(i).blank? }
method_list.each do |method|