Module: CompilerConstants

Included in:
CompilerSelector, CxxStdlib, SharedEnvExtension
Defined in:
Library/Homebrew/compilers.rb

Constant Summary collapse

GNU_GCC_VERSIONS =
%w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5 6 7].freeze
GNU_GCC_REGEXP =
/^gcc-(4\.[3-9]|[5-7])$/
COMPILER_SYMBOL_MAP =
{
  "gcc-4.0"    => :gcc_4_0,
  "gcc-4.2"    => :gcc_4_2,
  "clang"      => :clang,
  "llvm_clang" => :llvm_clang,
}.freeze
COMPILERS =
COMPILER_SYMBOL_MAP.values +
GNU_GCC_VERSIONS.map { |n| "gcc-#{n}" }