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

10 lines
176 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
class CompilerSelector
sig { returns(String) }
linux: use preferred_gcc instead of gcc
2021-02-08 20:06:09 +01:00
def self.preferred_gcc
Use GCC 12 for runtime libraries
2022-09-18 00:58:47 +01:00
OS::LINUX_PREFERRED_GCC_COMPILER_FORMULA
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
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 803ms Template: 5ms
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