Skip to content

Commit

Permalink
Force use lld for konan targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ISNing committed Feb 10, 2024
1 parent f3018cd commit 3a410ea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.isning.gradle.plugins.kn.krossCompile.utils

import io.github.isning.gradle.plugins.cmake.ModifiableCMakeTarget
import io.github.isning.gradle.plugins.cmake.forceUseLld
import io.github.isning.gradle.plugins.cmake.params.entries.asCMakeParams
import io.github.isning.gradle.plugins.cmake.params.entries.lang.ModifiableCEntriesImpl
import io.github.isning.gradle.plugins.cmake.params.entries.lang.ModifiableCXXEntriesImpl
Expand All @@ -13,4 +14,6 @@ fun ModifiableCMakeTarget<*, *>.useKonan(target: String, executable: String = "r
} + ModifiableCXXEntriesImpl().apply {
compiler = "$executable;clang clang++ $target"
}).asCMakeParams
// Wait for https://youtrack.jetbrains.com/issue/KT-56569 to use lld from konan
forceUseLld()
}

0 comments on commit 3a410ea

Please sign in to comment.