diff options
| author | Jack Nagel | 2015-02-08 20:04:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-08 20:04:06 -0500 |
| commit | f6b6c84c5f63516ad3a9ab299d66a892b58e5f0f (patch) | |
| tree | dc4b86cf375fb62053614ba5398f6f44d87e1fe7 /Library | |
| parent | 020c867418445535159a18ef84595f0a0e55c9bb (diff) | |
| download | homebrew-f6b6c84c5f63516ad3a9ab299d66a892b58e5f0f.tar.bz2 | |
Get rid of cccfg? method
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 5e985a042..999f2104b 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -26,11 +26,12 @@ end LOGGER = Logger.new class Cmd - attr_reader :prefix, :cellar, :tmpdir, :sysroot + attr_reader :config, :prefix, :cellar, :tmpdir, :sysroot def initialize path, args @arg0 = File.basename(path).freeze @args = args.freeze + @config = ENV.fetch("HOMEBREW_CCCFG") { "" } @prefix = ENV['HOMEBREW_PREFIX'] @cellar = ENV['HOMEBREW_CELLAR'] @tmpdir = ENV['HOMEBREW_TEMP'] @@ -285,28 +286,24 @@ class Cmd ENV.key? 'as_nl' end - def cccfg? flags - flags.split('').all?{|c| ENV['HOMEBREW_CCCFG'].include? c } if ENV['HOMEBREW_CCCFG'] - end - def refurbish_args? - cccfg?("O") + config.include?("O") end def cxx11? - cccfg?("x") + config.include?("x") end def libcxx? - cccfg?("g") + config.include?("g") end def libstdcxx? - cccfg?("h") + config.include?("h") end def permit_arch_flags? - cccfg?("K") + config.include?("K") end def canonical_path(path) |
