diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-27 16:05:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-27 16:05:03 +0200 |
commit | 0f50bbee8216813e0d4d8b72b7ae3624f55a4742 (patch) | |
tree | 19e01e8c02cdcac60d834d09cbc8f1c76ea76e17 /build2/bin/module.cxx | |
parent | 7f74396e5e02b83ea511684cef318348f18840e1 (diff) |
Add support for Mingw32 target, also config.bin.ar, config.bin.ranlib
Diffstat (limited to 'build2/bin/module.cxx')
-rw-r--r-- | build2/bin/module.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build2/bin/module.cxx b/build2/bin/module.cxx index 1e79e9e..472ee86 100644 --- a/build2/bin/module.cxx +++ b/build2/bin/module.cxx @@ -46,6 +46,9 @@ namespace build2 { auto& v (var_pool); + v.find ("config.bin.ar", string_type); //@@ VAR path_type + v.find ("config.bin.ranlib", string_type); //@@ VAR path_type + v.find ("config.bin.lib", string_type); v.find ("config.bin.exe.lib", strings_type); v.find ("config.bin.liba.lib", strings_type); @@ -154,6 +157,21 @@ namespace build2 if (const value& v = config::optional (r, "config.bin.rpath")) b.assign ("bin.rpath") += as<strings> (v); + // config.bin.ar + // config.bin.ranlib + // + // 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). + // + 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"); + } // Configure "installability" of our target types. // |