From d1ad30f7a517e69bc87d1347224f1c9ab38493b3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Oct 2012 10:35:36 +0200 Subject: Static multi-database support Add new options (--multi-database, --default-database). Generate common code to -odb.?xx files and database-specific to -odb-.?xx. --- odb/plugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/plugin.cxx') diff --git a/odb/plugin.cxx b/odb/plugin.cxx index 1d73b7f..c5dcc89 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -268,7 +268,7 @@ plugin_init (plugin_name_args* plugin_info, plugin_gcc_version*) cli::argv_file_scanner scan (argc, &argv[0], oi, 3); options ops (scan); assert (ops.database_specified ()); - db = ops.database (); + db = ops.database ()[0]; } profile_data pd (profile_paths_, db, "odb plugin"); -- cgit v1.1