aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorXiyue Deng2013-10-07 00:40:32 -0700
committerXiyue Deng2013-10-26 22:17:04 -0700
commitaeaf6fe104e177ad6c207b9897a432be964f4c5a (patch)
tree9e9cb19406ca1630720e16387e7bf14400ee386f /Library/Homebrew/software_spec.rb
parentc35067b6710098ee39533129995703ee629574b2 (diff)
downloadhomebrew-aeaf6fe104e177ad6c207b9897a432be964f4c5a.tar.bz2
C++11 support.
* Add options and ENV method to specify building in C++11 mode. - Set C++ compiler flags to enable C++11 mode. - To add options to support C++11 mode, a formula can now use option :cxx11 to provide "--c++11" option, and detect and enable C++11 support in install method using ENV.cxx11 if build.cxx11? Closes #22453.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 80f92a7c9..3d0664b7d 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -50,6 +50,7 @@ class SoftwareSpec
end
def option name, description=nil
+ name = 'c++11' if name == :cxx11
name = name.to_s if Symbol === name
raise "Option name is required." if name.empty?
raise "Options should not start with dashes." if name[0, 1] == "-"