diff options
Diffstat (limited to 'Library/Homebrew/build_options.rb')
| -rw-r--r-- | Library/Homebrew/build_options.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 85c53c354..b46fb7c4f 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -8,11 +8,10 @@ class BuildOptions attr_accessor :args attr_accessor :universal attr_reader :options - protected :options - def initialize args + def initialize(args, options) @args = Options.coerce(args) - @options = Options.new + @options = options end def initialize_copy(other) @@ -31,15 +30,6 @@ class BuildOptions @options << Option.new(name, description) end - def add_dep_option(dep) - name = dep.option_name - if dep.optional? && !has_option?("with-#{name}") - add("with-#{name}", "Build with #{name} support") - elsif dep.recommended? && !has_option?("without-#{name}") - add("without-#{name}", "Build without #{name} support") - end - end - def has_option? name any? { |opt| opt.name == name } end |
