Fixed build when not using cross

This commit is contained in:
Abdelilah El Aissaoui 2024-02-22 17:41:45 +01:00
parent 55730886d2
commit c15bf627c1
No known key found for this signature in database
GPG Key ID: 7587FC860F594869
2 changed files with 2 additions and 3 deletions

View File

@ -236,7 +236,7 @@ fun buildRust() {
binary, "build", "--release", "--features=uniffi/cli",
)
if (currentOs() == OS.LINUX) {
if (currentOs() == OS.LINUX && useCross) {
if (isLinuxAarch64) {
params.add("--target=$linuxArmTarget")
} else {
@ -252,7 +252,7 @@ fun buildRust() {
fun copyRustBuild() {
val outputDir = "${buildDir}/classes/kotlin/main"
val workingDirPath = if (currentOs() == OS.LINUX) {
val workingDirPath = if (currentOs() == OS.LINUX && useCross) {
if (isLinuxAarch64) {
"rs/target/$linuxArmTarget/release"
} else {

View File

@ -466,7 +466,6 @@ fun CommitsList(
val xScroll = pointerEvent.changes.map { it.scrollDelta.x }.sum()
horizontalScrollState.scrollBy(xScroll * HORIZONTAL_SCROLL_PIXELS_MULTIPLIER)
}
println(pointerEvent)
},
) {
if (