diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-01-20 16:02:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-01-20 16:02:41 +0200 |
commit | f18e7bfae2e4dbf28e45da176e3836232484dd92 (patch) | |
tree | e27384b80d453d89d5fec4bdce3702d2874b6962 /odb/options.cli | |
parent | 888888eb63c367b47f2ad3e81408bfcc54e42e80 (diff) |
Implement support for profiles
New option: --profile/-p.
Diffstat (limited to 'odb/options.cli')
-rw-r--r-- | odb/options.cli | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/odb/options.cli b/odb/options.cli index 80407b0..9acc6f3 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -281,9 +281,23 @@ class options preprocessor macro name are replaced with underscores." }; - // This is a "fake" option in that it is actually handled by - // argv_file_scanner. We have it here to get the documentation. + // The following two options are "fake" in that they are actually handled + // by argv_file_scanner. We have them here to get the documentation. // + std::string --profile|-p + { + "<name>", + "Specify a profile that should be used during compilation. + Profile is an options file with the name constructed by appending + the \cb{.options} suffix to <name>. It is searched for in the + same set of directories as C++ headers included with the + \cb{#include <...>} directive (built-in paths plus those specified + with the \cb{-I} options). The options file is first searched for + in the directory itself and then in its \cb{odb/} subdirectory. For + format of the options file refer to the \cb{--options-file} option + below. You can repeat this option to specify more than one profile." + }; + std::string --options-file { "<file>", @@ -300,8 +314,8 @@ class options The semantics of providing options in a file is equivalent to providing the same set of options in the same order on the command line at the point where the \cb{--options-file} option is specified except that - the shell escaping and quoting is not required. Repeat this option - to specify more than one options file." + the shell escaping and quoting is not required. You can repeat this + option to specify more than one options file." }; std::vector<std::string> -x |