diff --git a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy index d4108880c22..fdd3e987474 100644 --- a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy +++ b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/CompileToBitcode.groovy @@ -164,7 +164,7 @@ class CompileCppToBitcode extends DefaultTask { project.exec { executable "$project.llvmDir/bin/llvm-link" - args project.fileTree(objDir).include('**/*.bc') + args project.fileTree(objDir).include('**/*.bc').sort { a, b -> (a.name <=> b.name) } args linkerArgs