File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import org.jetbrains.kotlin.fir.deserialization.MultipleModuleDataProvider
11
11
import org.jetbrains.kotlin.name.Name
12
12
import java.nio.file.Path
13
13
import java.nio.file.Paths
14
+ import kotlin.io.path.exists
15
+ import kotlin.io.path.isSymbolicLink
14
16
15
17
/* *
16
18
* This class represents the set of dependencies for some source module.
@@ -107,7 +109,9 @@ class DependencyListForCliModule @PrivateSessionConstructor constructor(
107
109
if (paths.isEmpty()) return
108
110
val filterSet = filtersMap.getOrPut(moduleData) { mutableSetOf () }
109
111
paths.mapTo(filterSet) {
110
- Paths .get(it).toRealPath()
112
+ val path = Paths .get(it)
113
+ if (path.isSymbolicLink()) path.toRealPath()
114
+ else path.toAbsolutePath()
111
115
}
112
116
}
113
117
You can’t perform that action at this time.
0 commit comments