Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/extend/os/linux/compilers.rb

22 lines
449 B
Ruby
Raw Normal View History

compilers: prefer gcc 5 on linux Fixes #10170 by preferring gcc@5 on linux This makes sure ENV.cc and ENV.cxx is correctly set: If a formula does not explicitely depend on a brewed gcc, ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change, even if other gcc versions are installed on the system.
2021-02-03 21:28:11 +01:00
# typed: strict
# frozen_string_literal: true
Remove more monkey-patching in `extend/os`
2025-06-21 21:34:20 -04:00
module OS
module Linux
module CompilerSelector
module ClassMethods
extend T::Helpers
requires_ancestor { T.class_of(::CompilerSelector) }
sig { returns(String) }
def preferred_gcc
OS::LINUX_PREFERRED_GCC_COMPILER_FORMULA
end
end
end
compilers: prefer gcc 5 on linux Fixes #10170 by preferring gcc@5 on linux This makes sure ENV.cc and ENV.cxx is correctly set: If a formula does not explicitely depend on a brewed gcc, ENV.cc is set to gcc-5 (system gcc-5 or brewed gcc-5) with this change, even if other gcc versions are installed on the system.
2021-02-03 21:28:11 +01:00
end
end
Remove more monkey-patching in `extend/os`
2025-06-21 21:34:20 -04:00
CompilerSelector.singleton_class.prepend(OS::Linux::CompilerSelector::ClassMethods)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 229ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API