diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 52e1e9881c..318c513b28 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -879,9 +879,11 @@ class FormulaInstaller args << "--debug" if debug? args << "--cc=#{@cc}" if @cc args << "--keep-tmp" if keep_tmp? - args << "--debug-symbols" if debug_symbols? - # Avoids dependecy error on flag - args << "--build-from-source" if build_from_source? && debug_symbols? + + if debug_symbols? + args << "--debug-symbols" + args << "--build-from-source" + end if @env.present? args << "--env=#{@env}"