Skip to content
Snippets Groups Projects
Commit 3a309d93 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/main: mp_verbose_flag available only if MICROPY_DEBUG_PRINTERS is true.

Not available for minimal build for example.
parent 9f001b09
No related branches found
No related tags found
No related merge requests found
...@@ -524,8 +524,10 @@ int main(int argc, char **argv) { ...@@ -524,8 +524,10 @@ int main(int argc, char **argv) {
break; break;
} else if (strcmp(argv[a], "-X") == 0) { } else if (strcmp(argv[a], "-X") == 0) {
a += 1; a += 1;
#if MICROPY_DEBUG_PRINTERS
} else if (strcmp(argv[a], "-v") == 0) { } else if (strcmp(argv[a], "-v") == 0) {
mp_verbose_flag++; mp_verbose_flag++;
#endif
} else if (strncmp(argv[a], "-O", 2) == 0) { } else if (strncmp(argv[a], "-O", 2) == 0) {
if (unichar_isdigit(argv[a][2])) { if (unichar_isdigit(argv[a][2])) {
MP_STATE_VM(mp_optimise_value) = argv[a][2] & 0xf; MP_STATE_VM(mp_optimise_value) = argv[a][2] & 0xf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment