17 #define EX_SOFTWARE 70
83 const std::list<std::string> &values=
86 for(std::list<std::string>::const_iterator
95 const std::list<std::string> &values=
98 for(std::list<std::string>::const_iterator
139 std::list<std::string>::iterator it;
141 std::cout <<
"Defines:\n";
146 std::cout <<
" " << (*it) <<
'\n';
149 std::cout <<
"Undefines:\n";
154 std::cout <<
" " << (*it) <<
'\n';
157 std::cout <<
"Preprocessor Options:\n";
162 std::cout <<
" " << (*it) <<
'\n';
165 std::cout <<
"Include Paths:\n";
170 std::cout <<
" " << (*it) <<
'\n';
173 std::cout <<
"Library Paths:\n";
178 std::cout <<
" " << (*it) <<
'\n';
181 std::cout <<
"Output file (object): "
183 std::cout <<
"Output file (executable): "
188 return compiler.
doit() ? EX_USAGE : EX_OK;
194 std::cout <<
"goto-armcc understands the options "
195 <<
"of armcc plus the following.\n\n";
Base class for command line interpretation for CL.
gcc_message_handlert message_handler
void help_mode() final
display command line help
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
std::string output_file_object
bool doit()
reads and source and object files, compiles and links them into goto program objects.
std::string object_file_extension
std::list< std::string > library_paths
std::string output_file_executable
bool set(const cmdlinet &cmdline)
struct configt::ansi_ct ansi_c
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)
std::list< std::string > include_paths
std::list< std::string > undefines
std::list< std::string > preprocessor_options
std::list< std::string > defines
std::size_t wchar_t_width