aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-02 19:29:59 -0500
committerJack Nagel2014-08-02 19:29:59 -0500
commit142beddd7a7c374b59e678a7df71e25df13df3e4 (patch)
tree70a8208f5d1ec01665b53d445427630d9ee8a26d /Library/Homebrew/build.rb
parent90e370d2eff4a2aaf00a4d2659192015fb7d91a4 (diff)
downloadbrew-142beddd7a7c374b59e678a7df71e25df13df3e4.tar.bz2
Use polymorphism to simplify stdlib compatibility check
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 70c943d21..ef7c2c45d 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -172,7 +172,7 @@ class Build
# This currently only tracks a single C++ stdlib per dep,
# though it's possible for different libs/executables in
# a given formula to link to different ones.
- stdlib_in_use = CxxStdlib.new(stdlibs.first, ENV.compiler)
+ stdlib_in_use = CxxStdlib.create(stdlibs.first, ENV.compiler)
begin
stdlib_in_use.check_dependencies(f, deps)
rescue IncompatibleCxxStdlibs => e