From 39a0e4230d9f79447755e765446f7fe6b897da99 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Mar 2016 16:43:10 +0200 Subject: Use depdb in cxx.link rule --- build2/bin/module.cxx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'build2/bin') diff --git a/build2/bin/module.cxx b/build2/bin/module.cxx index c691a23..c5ba25a 100644 --- a/build2/bin/module.cxx +++ b/build2/bin/module.cxx @@ -162,15 +162,23 @@ namespace build2 // // For config.bin.ar we default to 'ar' while ranlib should be explicitly // specified by the user in order for us to use it (most targets support - // -s option to ar). + // the -s option to ar). + // + + // @@ Maybe, if explicitly specified by the user, we should try to run + // them? // if (first) { - // @@ Maybe, if explicitly specified by the user, we should try to run - // them? - // config::required (r, "config.bin.ar", "ar"); - config::optional (r, "config.bin.ranlib"); + r.assign ("bin.ar.signature", string_type) = "Some ar"; + r.assign ("bin.ar.checksum", string_type) = "123"; + + if (auto& v = config::optional (r, "config.bin.ranlib")) + { + r.assign ("bin.ranlib.signature", string_type) = "Some ranlib"; + r.assign ("bin.ranlib.checksum", string_type) = "234"; + } } // Configure "installability" of our target types. -- cgit v1.1