From 41a1012b9a40e0b883bd5013c0c0a85e4348bb9d Mon Sep 17 00:00:00 2001 From: Niklas Rosenstein Date: Sun, 6 Dec 2015 16:14:33 +0100 Subject: [PATCH] add "msvc_deps_prefix" to Rule::IsReservedBinding() 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eval_env.cc b/src/eval_env.cc index e991d21..0abfdda 100644 --- a/src/eval_env.cc +++ b/src/eval_env.cc @@ -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& BindingEnv::GetRules() const { -- 2.7.4