Skip to content

Commit

Permalink
try fix cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Oct 7, 2022
1 parent 1772837 commit 07e3760
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[target.armv7-unknown-linux-gnueabihf]
pre-build = ["apt-get update && apt-get install --assume-yes protobuf-compiler clang"]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes protobuf-compiler clang zlib1g-dev:$CROSS_DEB_ARCH"
]

[target.x86_64-unknown-linux-gnu]
pre-build = ["apt-get update && apt-get install --assume-yes protobuf-compiler clang"]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes protobuf-compiler clang zlib1g-dev:$CROSS_DEB_ARCH"
]

0 comments on commit 07e3760

Please sign in to comment.