From df50091259a34fa4718f38c0e3b7b64f6e2469ac Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Jan 2015 11:03:06 +0200 Subject: Implement rule ambiguity detection Also establish the infrastructure for rule hinting --- build/b.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build/b.cxx') diff --git a/build/b.cxx b/build/b.cxx index ad68e21..5135761 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -257,13 +257,13 @@ main (int argc, char* argv[]) // Register rules. // cxx::link cxx_link; - rules.emplace (typeid (exe), cxx_link); + rules[typeid (exe)].emplace ("cxx.gnu.link", cxx_link); cxx::compile cxx_compile; - rules.emplace (typeid (obj), cxx_compile); + rules[typeid (obj)].emplace ("cxx.gnu.compile", cxx_compile); default_path_rule path_exists; - rules.emplace (typeid (path_target), path_exists); + rules[typeid (path_target)].emplace ("", path_exists); // Build. // -- cgit v1.1