From a55a5469c3186e85a9153139ef4f228a81c9b926 Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Wed, 2 Apr 2014 20:29:18 +0300
Subject: [PATCH] unix: Support #if-able impl-specific cmdline options.

For example, we still build w/o GC enabled, so cannot really set heap size.
---
 unix/main.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/unix/main.c b/unix/main.c
index b5f7a82f1..029a8effa 100644
--- a/unix/main.c
+++ b/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;
 }
 
-- 
GitLab