Skip to content

Commit db82653

Browse files
authored
Use an absolute path when loading a native library (#7208)
Fix #7206 This is an workaround of #7207 I don't think we want following this route, but since Mill is already bootstrapped with a Mill version affected by this issue, we need to fix it temporarily. Tested manually with `mill -i __.prepareOffline`. Pull request: #7208
1 parent db17f9c commit db82653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runner/launcher/src/mill/launcher/JLineNativeLoader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ object JLineNativeLoader {
109109
System.setProperty("library.jline.path", loader.millJLineNativeDir.toString)
110110
System.setProperty("library.jline.name", loader.millJLineNativeLibLocation.last)
111111

112-
System.load(loader.millJLineNativeLibLocation.toString)
112+
System.load(loader.millJLineNativeLibLocation.toNIO.toAbsolutePath().toString())
113113

114114
val cls = classOf[org.jline.nativ.JLineNativeLoader]
115115
val fld = cls.getDeclaredField("loaded")

0 commit comments

Comments
 (0)