unix: Support #if-able impl-specific cmdline options.
For example, we still build w/o GC enabled, so cannot really set heap size.
This commit is contained in:
parent
d4e7e06d7f
commit
a55a5469c3
11
unix/main.c
11
unix/main.c
@ -218,8 +218,19 @@ int usage(void) {
|
||||
"usage: py [-X <opt>] [-c <command>] [<filename>]\n"
|
||||
"\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"
|
||||
);
|
||||
impl_opts_cnt++;
|
||||
#endif
|
||||
|
||||
if (impl_opts_cnt == 0) {
|
||||
printf(" (none)\n");
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user