libtcc: Accept "-g0" to disable debug in addition to "-g", "-g1", "-g2" and "-g3"
This does not change our generated code. Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
This commit is contained in:
parent
3ce7bc6efc
commit
5fb582ab7f
1 changed files with 7 additions and 1 deletions
6
libtcc.c
6
libtcc.c
|
@ -1827,6 +1827,12 @@ reparse:
|
|||
break;
|
||||
#endif
|
||||
case TCC_OPTION_g:
|
||||
/* Use "-g" as alias for "-g1". Use "-g0" to disable debug */
|
||||
/* Other common used values: "-g0", "-g1", "-g2" and "-g3" */
|
||||
/* no failure with unsupported options */
|
||||
if (isnum(*optarg))
|
||||
s->do_debug = atoi(optarg);
|
||||
else
|
||||
s->do_debug = 1;
|
||||
break;
|
||||
case TCC_OPTION_c:
|
||||
|
|
Loading…
Reference in a new issue