nitc/android: temporally disable the GC on Android
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 2 Nov 2015 15:13:33 +0000 (10:13 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 7 Nov 2015 21:20:22 +0000 (16:20 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

clib/gc_chooser.c
src/platform/android.nit

index 497cc7e..d3854c8 100644 (file)
@@ -18,6 +18,9 @@
 #ifdef ANDROID
        #include <android/log.h>
        #define PRINT_ERROR(...) ((void)__android_log_print(ANDROID_LOG_WARN, "nit", __VA_ARGS__))
+
+       // FIXME bring back when the GC is fixed in Android
+       #undef WITH_LIBGC
 #else
        #define PRINT_ERROR(...) ((void)fprintf(stderr, __VA_ARGS__))
 #endif
index 1a6f458..b192d91 100644 (file)
@@ -36,7 +36,7 @@ class AndroidPlatform
 
        redef fun name do return "android"
 
-       redef fun supports_libgc do return true
+       redef fun supports_libgc do return false
 
        redef fun supports_libunwind do return false