add "msvc_deps_prefix" to Rule::IsReservedBinding()
authorNiklas Rosenstein <rosensteinniklas@gmail.com>
Sun, 6 Dec 2015 15:14:33 +0000 (16:14 +0100)
committerNiklas Rosenstein <rosensteinniklas@gmail.com>
Sun, 6 Dec 2015 15:14:33 +0000 (16:14 +0100)
fixes the error about an unexpected variable for a rule that
declares the msvc_deps_prefix. The manual suggests that this
should work since Ninja 1.5
(https://ninja-build.org/manual.html#ref_rule).

Closes #1043

src/eval_env.cc

index e991d21..0abfdda 100644 (file)
@@ -71,7 +71,8 @@ bool Rule::IsReservedBinding(const string& var) {
       var == "pool" ||
       var == "restat" ||
       var == "rspfile" ||
-      var == "rspfile_content";
+      var == "rspfile_content" ||
+      var == "msvc_deps_prefix";
 }
 
 const map<string, const Rule*>& BindingEnv::GetRules() const {