diff options
author | Niklas Rosenstein <rosensteinniklas@gmail.com> | 2015-12-06 15:14:33 (GMT) |
---|---|---|
committer | Niklas Rosenstein <rosensteinniklas@gmail.com> | 2015-12-06 15:14:33 (GMT) |
commit | 41a1012b9a40e0b883bd5013c0c0a85e4348bb9d (patch) | |
tree | 27c6945be40d6bc1ea44f99b2554ee3f6ca47ca5 /src | |
parent | 9d7213e43dcc66f2dccee3e6a97aacd700947671 (diff) | |
download | Ninja-41a1012b9a40e0b883bd5013c0c0a85e4348bb9d.zip Ninja-41a1012b9a40e0b883bd5013c0c0a85e4348bb9d.tar.gz Ninja-41a1012b9a40e0b883bd5013c0c0a85e4348bb9d.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/eval_env.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<string, const Rule*>& BindingEnv::GetRules() const { |