aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-16 16:08:41 -0500
committerJack Nagel2014-06-16 16:40:09 -0500
commitbe1822dd728b4ca3d6b3be528ae067de482810e4 (patch)
treed6bc93360a1644c8d69e70c9219ea5e0d4b5c928 /Library/Homebrew/compilers.rb
parentff2d8fece3ff9645d4a26ca285604e597d15db7e (diff)
downloadbrew-be1822dd728b4ca3d6b3be528ae067de482810e4.tar.bz2
Place alias adjacent to aliased method
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index 360395caf..2d10074e1 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -10,6 +10,10 @@ class CompilerFailure
attr_reader :compiler, :major_version
attr_rw :cause, :version
+ # Allows Apple compiler `fails_with` statements to keep using `build`
+ # even though `build` and `version` are the same internally
+ alias_method :build, :version
+
MESSAGES = {
:cxx11 => 'This compiler does not support C++11'
}
@@ -60,10 +64,6 @@ class CompilerFailure
@version = @version.to_i
end
end
-
- # Allows Apple compiler `fails_with` statements to keep using `build`
- # even though `build` and `value` are the same internally
- alias_method :build, :version
end
class CompilerQueue