diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 15:15:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 15:15:17 +0200 |
commit | a81b6977c9aa75e9754fd74417278da943c48883 (patch) | |
tree | d1373f42f58f61049841926dc0ba7b6b71df5aba | |
parent | bf21eac4ab82b7058c3c4148bae8b1f77924730e (diff) |
Add ODB compiler version macro
-rw-r--r-- | odb/odb.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx index e9b8b7d..74035f7 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -17,6 +17,7 @@ #include <string> #include <vector> #include <cstddef> // size_t +#include <sstream> #include <iostream> #include <cutl/fs/path.hxx> @@ -266,6 +267,13 @@ main (int argc, char* argv[]) // Add ODB macros. // args.push_back ("-DODB_COMPILER"); + + { + ostringstream ostr; + ostr << ODB_COMPILER_VERSION; + args.push_back ("-DODB_COMPILER_VERSION=" + ostr.str ()); + } + args.push_back (db_macro[ops.database ()]); // Encode plugin options. |