New --cpu command line switch
git-svn-id: svn://svn.cc65.org/cc65/trunk@468 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -58,6 +58,7 @@ Short options:
|
|||||||
Long options:
|
Long options:
|
||||||
--ansi Strict ANSI mode
|
--ansi Strict ANSI mode
|
||||||
--asm-include-dir dir Set an assembler include directory
|
--asm-include-dir dir Set an assembler include directory
|
||||||
|
--cpu type Set cpu type
|
||||||
--debug Debug mode
|
--debug Debug mode
|
||||||
--debug-info Add debug info
|
--debug-info Add debug info
|
||||||
--feature name Set an emulation feature
|
--feature name Set an emulation feature
|
||||||
|
|||||||
@@ -561,6 +561,7 @@ static void Usage (void)
|
|||||||
"Long options:\n"
|
"Long options:\n"
|
||||||
" --ansi\t\tStrict ANSI mode\n"
|
" --ansi\t\tStrict ANSI mode\n"
|
||||||
" --asm-include-dir dir\tSet an assembler include directory\n"
|
" --asm-include-dir dir\tSet an assembler include directory\n"
|
||||||
|
" --cpu type\t\tSet cpu type\n"
|
||||||
" --debug\t\tDebug mode\n"
|
" --debug\t\tDebug mode\n"
|
||||||
" --debug-info\t\tAdd debug info\n"
|
" --debug-info\t\tAdd debug info\n"
|
||||||
" --feature name\tSet an emulation feature\n"
|
" --feature name\tSet an emulation feature\n"
|
||||||
@@ -594,6 +595,18 @@ static void OptAsmIncludeDir (const char* Opt, const char* Arg)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static void OptCPU (const char* Opt, const char* Arg)
|
||||||
|
/* Handle the --cpu option */
|
||||||
|
{
|
||||||
|
/* Add the cpu type to the assembler and compiler */
|
||||||
|
CmdAddArg (&CA65, "--cpu");
|
||||||
|
CmdAddArg (&CA65, Arg);
|
||||||
|
CmdAddArg (&CC65, "--cpu");
|
||||||
|
CmdAddArg (&CA65, Arg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void OptDebug (const char* Opt, const char* Arg)
|
static void OptDebug (const char* Opt, const char* Arg)
|
||||||
/* Debug mode (compiler) */
|
/* Debug mode (compiler) */
|
||||||
{
|
{
|
||||||
@@ -703,6 +716,7 @@ int main (int argc, char* argv [])
|
|||||||
static const LongOpt OptTab[] = {
|
static const LongOpt OptTab[] = {
|
||||||
{ "--ansi", 0, OptAnsi },
|
{ "--ansi", 0, OptAnsi },
|
||||||
{ "--asm-include-dir", 1, OptAsmIncludeDir },
|
{ "--asm-include-dir", 1, OptAsmIncludeDir },
|
||||||
|
{ "--cpu", 1, OptCPU },
|
||||||
{ "--debug", 0, OptDebug },
|
{ "--debug", 0, OptDebug },
|
||||||
{ "--debug-info", 0, OptDebugInfo },
|
{ "--debug-info", 0, OptDebugInfo },
|
||||||
{ "--feature", 1, OptFeature },
|
{ "--feature", 1, OptFeature },
|
||||||
|
|||||||
Reference in New Issue
Block a user