aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compatibility.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-21 14:23:28 -0700
committerAdam Vandenberg2011-03-25 23:31:28 -0700
commit145bafbc4e72bcc3c8bc6b0f0414ab317f1e8459 (patch)
tree5da81608342752bc144bb1509b4041c2a2699b44 /Library/Homebrew/compatibility.rb
parent007b9e72d513c515f216cde4ae59ea37f826277b (diff)
downloadbrew-145bafbc4e72bcc3c8bc6b0f0414ab317f1e8459.tar.bz2
Move 'fails_with_llvm' into formula DSL.
Existing method moved to compatibility layer.
Diffstat (limited to 'Library/Homebrew/compatibility.rb')
-rw-r--r--Library/Homebrew/compatibility.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/compatibility.rb b/Library/Homebrew/compatibility.rb
index 8e1a028de..5bc76d3ff 100644
--- a/Library/Homebrew/compatibility.rb
+++ b/Library/Homebrew/compatibility.rb
@@ -70,4 +70,11 @@ class Formula
name
end
end
+
+ # This used to be called in "def install", but should now be used
+ # up in the DSL section.
+ def fails_with_llvm msg=nil, data=nil
+ handle_llvm_failure FailsWithLLVM.new(msg, data)
+ end
+
end