From 3dea3352e4cd414f01ae3d3b2215d6b0f1348d32 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2016 09:30:24 +0200 Subject: Remove backwards-compatibility kludges --- build2/cli/init.cxx | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'build2/cli') diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index f2a3e8c..b7a8434 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -251,20 +251,6 @@ namespace build2 if (!cast_false (bs["cxx.loaded"])) fail (loc) << "cxx module must be loaded before cli"; - // Register target types. - // - // Note that we do it even if the module is unconfigured. Failed that, - // writing a buildfile will be pretty hard (actually, a buildfile still - // needs to be prepared that the module itself won't be found and loaded - // by defining fallback target types). This will be a BC change. - // - { - auto& t (bs.target_types); - - t.insert (); - t.insert (); - } - // Load cli.config. // if (!cast_false (bs["cli.config.loaded"])) @@ -281,6 +267,15 @@ namespace build2 return false; } + // Register target types. + // + { + auto& t (bs.target_types); + + t.insert (); + t.insert (); + } + // Register our rules. // { -- cgit v1.1