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
commit966e1822ebd98caeaff10d5877d4e6272b75bec8 (patch)
tree3b4aed152312f9c67d09867b68255a5334d91376 /Library/Homebrew/compatibility.rb
parent304d9af671748de70671481c307b0b3f1115832e (diff)
downloadhomebrew-966e1822ebd98caeaff10d5877d4e6272b75bec8.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