Skip to content

Commit

Permalink
Simplify Cross.toml file
Browse files Browse the repository at this point in the history
We currently define the pre-build commands to run individually for each
target. All the commands are same, and we do not run target specific
commands. This commit defines the pre-build commands using the
[build config](https://github.com/cross-rs/cross/wiki/Configuration#build)

Signed-off-by: Rahul Thakoor <[email protected]>
  • Loading branch information
rahul-thakoor authored and drskullster committed Apr 24, 2024
1 parent 9064b3f commit 2d4a18a
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
[target.aarch64-unknown-linux-gnu]
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
]

[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
]

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

[target.i686-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
]
]

0 comments on commit 2d4a18a

Please sign in to comment.