diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-09 16:43:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-09 16:43:10 +0200 |
commit | 39a0e4230d9f79447755e765446f7fe6b897da99 (patch) | |
tree | ca7d387da1daa0d2c9eb9c53a6ca3a83e1f48c20 /build2/bin | |
parent | 51267fc81abdbf0ca7f1098fccd7f3e0d7da5306 (diff) |
Use depdb in cxx.link rule
Diffstat (limited to 'build2/bin')
-rw-r--r-- | build2/bin/module.cxx | 18 |
1 files changed, 13 insertions, 5 deletions
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. |