File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,17 +204,14 @@ val os = DefaultNativePlatform.getCurrentOperatingSystem()
204204val includeLinux = os.isLinux
205205val includeMacOsX = os.isMacOsX
206206val includeWindows = os.isWindows
207- val enableNativeAccess = JavaVersion .current().isCompatibleWith(JavaVersion .VERSION_17 )
208207
209208tasks.withType<JavaExec >().configureEach { // JVM runtime options:
210209 if (os.isMacOsX) {
211210 jvmArgs(" -XstartOnFirstThread" ) // required for GLFW on macOS
212211 }
213212 classpath = sourceSets.main.get().runtimeClasspath
214213 enableAssertions = true
215- if (enableNativeAccess) {
216- jvmArgs(" --enable-native-access=ALL-UNNAMED" ) // suppress System::load() warning
217- }
214+ jvmArgs(" --enable-native-access=ALL-UNNAMED" ) // suppress System::load() warning
218215 jvmArgs(" -XX:+UseG1GC" , " -XX:MaxGCPauseMillis=10" )
219216}
220217
You can’t perform that action at this time.
0 commit comments