Skip to content

Commit 6d8b739

Browse files
[GR-34532] Relax the JDK version check for static musl-based native-images.
PullRequest: graal/10093
2 parents 0261fc4 + 37358e6 commit 6d8b739

File tree

1 file changed

+2
-2
lines changed
  • substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/libc

1 file changed

+2
-2
lines changed

substratevm/src/com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/linux/libc/MuslLibC.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public void checkIfLibCSupported() {
6767
if (!SubstrateOptions.StaticExecutable.getValue()) {
6868
throw UserError.abort("Musl can only be used for statically linked executables.");
6969
}
70-
if (JavaVersionUtil.JAVA_SPEC != 11) {
71-
throw UserError.abort("Musl can only be used with labsjdk 11.");
70+
if (JavaVersionUtil.JAVA_SPEC < 11) {
71+
throw UserError.abort("Musl can only be used with labsjdk 11+.");
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)