History

libtcc: Accept "-g0" to disable debug in addition to "-g", "-g1", "-g2" and "-g3"

This does not change our generated code.

Detlef Riekenberg committed 4 years ago

Commit 5fb582a1 parent 3ce7bc61 file · +7 −1Browse files

Unified · Split

libtcc.c+7−1
@@ -1827,7 +1827,13 @@ reparse: · 1826 unmodified lines
1827 break;1827 break;
1828#endif1828#endif
1829 case TCC_OPTION_g:1829 case TCC_OPTION_g:
1830 s->do_debug = 1;1830 /* Use "-g" as alias for "-g1". Use "-g0" to disable debug */
1831 /* Other common used values: "-g0", "-g1", "-g2" and "-g3" */
1832 /* no failure with unsupported options */
1833 if (isnum(*optarg))
1834 s->do_debug = atoi(optarg);
1835 else
1836 s->do_debug = 1;
1831 break;1837 break;
1832 case TCC_OPTION_c:1838 case TCC_OPTION_c:
1833 x = TCC_OUTPUT_OBJ;1839 x = TCC_OUTPUT_OBJ;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t