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

unix: Support #if-able impl-specific cmdline options.

For example, we still build w/o GC enabled, so cannot really set heap size.
parent d4e7e06d
No related branches found
No related tags found
No related merge requests found
...@@ -218,8 +218,19 @@ int usage(void) { ...@@ -218,8 +218,19 @@ int usage(void) {
"usage: py [-X <opt>] [-c <command>] [<filename>]\n" "usage: py [-X <opt>] [-c <command>] [<filename>]\n"
"\n" "\n"
"Implementation specific options:\n" "Implementation specific options:\n"
);
int impl_opts_cnt = 0;
#if MICROPY_ENABLE_GC
printf(
" heapsize=<n> -- set the heap size for the GC\n" " heapsize=<n> -- set the heap size for the GC\n"
); );
impl_opts_cnt++;
#endif
if (impl_opts_cnt == 0) {
printf(" (none)\n");
}
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment