From 6779ea02fb07ba39d162300dd18297ba2027846a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 24 Sep 2017 02:29:13 +0300 Subject: Get rid of pkgconfig module --- build2/cc/init.cxx | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'build2/cc/init.cxx') diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx index 733280a..7669add 100644 --- a/build2/cc/init.cxx +++ b/build2/cc/init.cxx @@ -105,8 +105,6 @@ namespace build2 assert (first); - auto& vp (var_pool.rw (rs)); - // Load cc.core.vars. // if (!cast_false (rs["cc.core.vars.loaded"])) @@ -237,28 +235,6 @@ namespace build2 load_module (rs, rs, "bin.rc.config", loc); } - // Load (optionally) the pkgconfig module. Note that it registers the - // pc{} target whether the pkg-config utility is found or not. - // - // @@ At some point we may also want to verify that targets matched - // if it has already been loaded (by someone) else. Currently it - // doesn't set pkgconfig.target. Perhaps only set if it was used - // to derive the program name? - // - if (!cast_false (rs["pkgconfig.loaded"])) - { - // Prepare configuration hints. - // - variable_map h; - - // Note that this variable has not yet been registered. - // - const variable& t (vp.insert ("config.pkgconfig.target")); - h.assign (t) = cast (rs["cc.target"]); - - load_module (rs, rs, "pkgconfig", loc, true, h); - } - return true; } -- cgit v1.1