diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c621d6c37c8cd4fb608cb05ed33c0529ca6181d3..ebd23768de175e048b3693e65ad9d0ecbff25956 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -1256,6 +1256,7 @@ class Formula
       "dependencies" => deps.map(&:name).uniq,
       "recommended_dependencies" => deps.select(&:recommended?).map(&:name).uniq,
       "optional_dependencies" => deps.select(&:optional?).map(&:name).uniq,
+      "build_dependencies" => deps.select(&:build?).map(&:name).uniq,
       "conflicts_with" => conflicts.map(&:name),
       "caveats" => caveats
     }