From 421d375d052c6c66a35bdcc6a60f31b615616d37 Mon Sep 17 00:00:00 2001 From: Sravan Kumar Lakkimsetti Date: Fri, 15 Sep 2017 19:52:34 +0530 Subject: Bug 520636 - Make sure Eclipse starts with Java 9 -making the changes mac specific Change-Id: I402169a44dc28f83c8a676b2dce50848ba2fcf31 Signed-off-by: Sravan Kumar Lakkimsetti --- features/org.eclipse.equinox.executable.feature/library/eclipse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/features/org.eclipse.equinox.executable.feature/library/eclipse.c b/features/org.eclipse.equinox.executable.feature/library/eclipse.c index 3408c786c..4ff218722 100644 --- a/features/org.eclipse.equinox.executable.feature/library/eclipse.c +++ b/features/org.eclipse.equinox.executable.feature/library/eclipse.c @@ -272,7 +272,9 @@ static int noSplash = 0; /* True: do not show splash win */ static int suppressErrors = 0; /* True: do not display errors dialogs */ int secondThread = 0; /* True: start the VM on a second thread */ static int appendVmargs = 0; /* True: append cmdline vmargs to launcher.ini vmargs */ +#ifdef MACOSX static int skipJava9ParamRemoval = 0; /* Set to true only on macOS, if -vm was present on commandline or in eclipse.ini and points to a shared lib */ +#endif static _TCHAR* showSplashArg = NULL; /* showsplash data (main launcher window) */ static _TCHAR* splashBitmap = NULL; /* the actual splash bitmap */ @@ -1042,7 +1044,11 @@ static void adjustVMArgs(_TCHAR *javaVM, _TCHAR *jniLib, _TCHAR **vmArgv[]) { int i = 0; +#ifdef MACOSX if (!skipJava9ParamRemoval && !isModularVM(javaVM, jniLib)) { +#else + if (!isModularVM(javaVM, jniLib)) { +#endif while ((*vmArgv)[i] != NULL) { if (_tcsncmp((*vmArgv)[i], ADDMODULES, _tcslen(ADDMODULES)) == 0) { int j = 0, k = 0; -- cgit v1.2.3