Fixed build when not using cross
This commit is contained in:
parent
55730886d2
commit
c15bf627c1
@ -236,7 +236,7 @@ fun buildRust() {
|
|||||||
binary, "build", "--release", "--features=uniffi/cli",
|
binary, "build", "--release", "--features=uniffi/cli",
|
||||||
)
|
)
|
||||||
|
|
||||||
if (currentOs() == OS.LINUX) {
|
if (currentOs() == OS.LINUX && useCross) {
|
||||||
if (isLinuxAarch64) {
|
if (isLinuxAarch64) {
|
||||||
params.add("--target=$linuxArmTarget")
|
params.add("--target=$linuxArmTarget")
|
||||||
} else {
|
} else {
|
||||||
@ -252,7 +252,7 @@ fun buildRust() {
|
|||||||
fun copyRustBuild() {
|
fun copyRustBuild() {
|
||||||
val outputDir = "${buildDir}/classes/kotlin/main"
|
val outputDir = "${buildDir}/classes/kotlin/main"
|
||||||
|
|
||||||
val workingDirPath = if (currentOs() == OS.LINUX) {
|
val workingDirPath = if (currentOs() == OS.LINUX && useCross) {
|
||||||
if (isLinuxAarch64) {
|
if (isLinuxAarch64) {
|
||||||
"rs/target/$linuxArmTarget/release"
|
"rs/target/$linuxArmTarget/release"
|
||||||
} else {
|
} else {
|
||||||
|
@ -466,7 +466,6 @@ fun CommitsList(
|
|||||||
val xScroll = pointerEvent.changes.map { it.scrollDelta.x }.sum()
|
val xScroll = pointerEvent.changes.map { it.scrollDelta.x }.sum()
|
||||||
horizontalScrollState.scrollBy(xScroll * HORIZONTAL_SCROLL_PIXELS_MULTIPLIER)
|
horizontalScrollState.scrollBy(xScroll * HORIZONTAL_SCROLL_PIXELS_MULTIPLIER)
|
||||||
}
|
}
|
||||||
println(pointerEvent)
|
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user