2020-08-17 10:06:06 +00:00
|
|
|
[build.env]
|
|
|
|
passthrough = [
|
|
|
|
"RUSTFLAGS",
|
|
|
|
]
|
2021-12-21 08:23:17 +00:00
|
|
|
|
|
|
|
# These custom images are required to work around the lack of Clang in the default `cross` images.
|
|
|
|
# We need Clang to run `bindgen` for MDBX, and the `BINDGEN_EXTRA_CLANG_ARGS` flags must also be set
|
|
|
|
# while cross-compiling for ARM to prevent bindgen from attempting to include headers from the host.
|
|
|
|
#
|
|
|
|
# For more information see https://github.com/rust-embedded/cross/pull/608
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
|
|
image = "michaelsproul/cross-clang:x86_64-latest"
|
|
|
|
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
|
|
image = "michaelsproul/cross-clang:aarch64-latest"
|