Skip to content

Commit f7d24ad

Browse files
committed
fix: cross toml
1 parent 3b35ac1 commit f7d24ad

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

memoria/Cross.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
[target.aarch64-unknown-linux-gnu]
2-
pre-build = ["apt-get update && apt-get install -y pkg-config libssl-dev"]
2+
# Vendored OpenSSL needs a C compiler, perl, and make (perl/make already in cross image).
3+
# Do NOT install system libssl-dev — the cross image (Xenial) has 1.0.2 which is
4+
# incompatible with openssl-sys. We use openssl = { features = ["vendored"] } instead.
5+
6+
[build.env]
7+
# Pass these into the cross Docker container so vendored OpenSSL build works:
8+
# - OPENSSL_NO_PKG_CONFIG: skip system libssl, force build from source
9+
# - SQLX_OFFLINE: don't require a live database for compile-time query checks
10+
passthrough = ["OPENSSL_NO_PKG_CONFIG", "SQLX_OFFLINE"]

0 commit comments

Comments
 (0)