Skip to content

Commit 0b3021a

Browse files
committed
apps/build.gradle.kts: remove a version check that's now redundant
1 parent 02e4f55 commit 0b3021a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

apps/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,14 @@ val os = DefaultNativePlatform.getCurrentOperatingSystem()
204204
val includeLinux = os.isLinux
205205
val includeMacOsX = os.isMacOsX
206206
val includeWindows = os.isWindows
207-
val enableNativeAccess = JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)
208207

209208
tasks.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

0 commit comments

Comments
 (0)