diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-15 11:52:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:21 +0200 |
commit | 75665dbe87b97c965eeb5f32b86f526ea8726436 (patch) | |
tree | 9cac7ac5e4974e35359e1533b512d85752a01fc1 /build2/test/rule.cxx | |
parent | a81154d0cbfaa9ee5fd0be049a44e0254ccc98b9 (diff) |
Change test variable type from bool to path
We still recognize the true/false as special values.
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r-- | build2/test/rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index c133698..f48a3d1 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -55,7 +55,7 @@ namespace build2 // explicitly set to false. // lookup l (t["test"]); - md.test = !l || cast<bool> (l); + md.test = !l || cast<path> (l).string () != "false"; } else { @@ -69,7 +69,7 @@ namespace build2 // auto p (t.find ("test")); - if (p.first && cast<bool> (p.first)) + if (p.first && cast<path> (p.first).string () != "false") md.test = true; else { |