From 85399cf60764b0fe54d44d4a5bacb54feae8dd62 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Jun 2019 15:01:41 +0200 Subject: Add support for [config.]{cc,c,cxx}.aoptions (archive options) In particular, this can be used to suppress lib.exe warnings, for example: cc.aoptions += /IGNORE:4221 --- build2/cxx/init.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/cxx/init.cxx') diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index 25b6c0d..518a823 100644 --- a/build2/cxx/init.cxx +++ b/build2/cxx/init.cxx @@ -393,6 +393,7 @@ namespace build2 v.insert ("config.cxx.poptions", true), v.insert ("config.cxx.coptions", true), v.insert ("config.cxx.loptions", true), + v.insert ("config.cxx.aoptions", true), v.insert ("config.cxx.libs", true), // List of importable headers. Inclusion of such headers is translated @@ -411,15 +412,19 @@ namespace build2 v.insert ("cxx.sys_inc_dirs"), v.insert ("cxx.std", variable_visibility::project), + v.insert ("cxx.poptions"), v.insert ("cxx.coptions"), v.insert ("cxx.loptions"), + v.insert ("cxx.aoptions"), v.insert ("cxx.libs"), + &v.insert ("cxx.importable_headers"), v["cc.poptions"], v["cc.coptions"], v["cc.loptions"], + v["cc.aoptions"], v["cc.libs"], v.insert ("cxx.export.poptions"), -- cgit v1.1