79 config.
ansi_c.preprocessor_options.push_back(
"-nostdinc");
98 compiler.output_file_executable=
"a.out";
103 const std::list<std::string> &values=
106 for(std::list<std::string>::const_iterator
110 config.
ansi_c.preprocessor_options.push_back(
"-Wp,"+*it);
115 const std::list<std::string> &values=
118 for(std::list<std::string>::const_iterator
122 config.
ansi_c.preprocessor_options.push_back(
"-isystem "+*it);
127 std::list<std::string>::iterator it;
129 std::cout <<
"Defines:\n";
134 std::cout <<
" " << (*it) <<
'\n';
137 std::cout <<
"Undefines:\n";
142 std::cout <<
" " << (*it) <<
'\n';
145 std::cout <<
"Preprocessor Options:\n";
150 std::cout <<
" " << (*it) <<
'\n';
153 std::cout <<
"Include Paths:\n";
158 std::cout <<
" " << (*it) <<
'\n';
161 std::cout <<
"Library Paths:\n";
162 for(it=
compiler.library_paths.begin();
166 std::cout <<
" " << (*it) <<
'\n';
169 std::cout <<
"Output file (object): "
170 <<
compiler.output_file_object <<
'\n';
171 std::cout <<
"Output file (executable): "
172 <<
compiler.output_file_executable <<
'\n';
182 std::cout <<
"goto-cw understands the options of "
183 <<
"gcc (mwcc mode) plus the following.\n\n";
virtual void clear()
Reset the abstract state.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
std::string get_value(char option) const
virtual bool isset(char option) const
const std::list< std::string > & get_values(const std::string &option) const
@ COMPILE_LINK_EXECUTABLE
bool set(const cmdlinet &cmdline)
struct configt::ansi_ct ansi_c
virtual int doit()
does it.
console_message_handlert message_handler
virtual void help_mode()
display command line help
const std::string base_name
void help()
display command line help
Class that provides messages with a built-in verbosity 'level'.
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
Compile and link source and object files.
bool has_prefix(const std::string &s, const std::string &prefix)
Base class for command line interpretation.