diff options
| author | Jack Nagel | 2014-08-02 19:29:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-02 19:29:59 -0500 |
| commit | e1f97e260ca320141c9c48158814aff895e76486 (patch) | |
| tree | 16d8d51ada8114f47c84ddfe1dc8221795f1e02f /Library/Homebrew/formula_installer.rb | |
| parent | 08d3790347330aaced0c586f18603dff60ae70dc (diff) | |
| download | homebrew-e1f97e260ca320141c9c48158814aff895e76486.tar.bz2 | |
Use polymorphism to simplify stdlib compatibility check
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index b10846a0c..74b1097a8 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -159,7 +159,7 @@ class FormulaInstaller @poured_bottle = true stdlibs = Keg.new(f.prefix).detect_cxx_stdlibs - stdlib_in_use = CxxStdlib.new(stdlibs.first, MacOS.default_compiler) + stdlib_in_use = CxxStdlib.create(stdlibs.first, MacOS.default_compiler) begin stdlib_in_use.check_dependencies(f, f.recursive_dependencies) rescue IncompatibleCxxStdlibs => e |
