desktop: remove GC flag when building on windows (#3455)
* desktop: remove GC flag when building on windows * add correct define
This commit is contained in:
parent
e91a1f151d
commit
fe9953fc49
@ -8,8 +8,13 @@ void hs_init_with_rtsopts(int * argc, char **argv[]);
|
|||||||
|
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
Java_chat_simplex_common_platform_CoreKt_initHS(JNIEnv *env, jclass clazz) {
|
Java_chat_simplex_common_platform_CoreKt_initHS(JNIEnv *env, jclass clazz) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
int argc = 4;
|
||||||
|
char *argv[] = {"simplex", "+RTS", "-A16m", "-H64m", NULL}; // non-moving GC is broken on windows with GHC 9.4-9.6.3
|
||||||
|
#else
|
||||||
int argc = 5;
|
int argc = 5;
|
||||||
char *argv[] = {"simplex", "+RTS", "-A16m", "-H64m", "-xn", NULL}; // see android/simplex-api.c for details
|
char *argv[] = {"simplex", "+RTS", "-A16m", "-H64m", "-xn", NULL}; // see android/simplex-api.c for details
|
||||||
|
#endif
|
||||||
char **pargv = argv;
|
char **pargv = argv;
|
||||||
hs_init_with_rtsopts(&argc, &pargv);
|
hs_init_with_rtsopts(&argc, &pargv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user