17 #define EX_SOFTWARE 70 40 unsigned int verbosity=1;
85 const std::list<std::string> &values=
88 for(std::list<std::string>::const_iterator
97 const std::list<std::string> &values=
100 for(std::list<std::string>::const_iterator
109 compiler.object_file_extension=
112 compiler.object_file_extension=
"o";
135 compiler.output_file_object=
"";
136 compiler.output_file_executable=
"a.out";
141 std::list<std::string>::iterator it;
143 std::cout <<
"Defines:\n";
148 std::cout <<
" " << (*it) <<
'\n';
151 std::cout <<
"Undefines:\n";
156 std::cout <<
" " << (*it) <<
'\n';
159 std::cout <<
"Preprocessor Options:\n";
164 std::cout <<
" " << (*it) <<
'\n';
167 std::cout <<
"Include Paths:\n";
172 std::cout <<
" " << (*it) <<
'\n';
175 std::cout <<
"Library Paths:\n";
176 for(it=compiler.library_paths.begin();
177 it!=compiler.library_paths.end();
180 std::cout <<
" " << (*it) <<
'\n';
183 std::cout <<
"Output file (object): " 184 << compiler.output_file_object <<
'\n';
185 std::cout <<
"Output file (executable): " 186 << compiler.output_file_executable <<
'\n';
190 return compiler.doit() ? EX_USAGE : EX_OK;
196 std::cout <<
"goto-armcc understands the options " 197 <<
"of armcc plus the following.\n\n";
const std::list< std::string > & get_values(const std::string &option) const
struct configt::ansi_ct ansi_c
gcc_message_handlert message_handler
std::list< std::string > defines
std::string get_value(char option) const
std::list< std::string > undefines
static mstreamt & eom(mstreamt &m)
bool set(const cmdlinet &cmdline)
virtual bool isset(char option) const
Base class for command line interpretation for CL.
bool has_prefix(const std::string &s, const std::string &prefix)
Compile and link source and object files.
message_handlert & get_message_handler()
virtual void help()
display command line help
void set_verbosity(unsigned _verbosity)
std::list< std::string > preprocessor_options
int unsafe_string2int(const std::string &str, int base)
void help_mode() final
display command line help
const std::string base_name
std::list< std::string > include_paths