diff --git a/Cargo.toml b/Cargo.toml index ab022a419621d..9c4eb4082ff4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -382,6 +382,7 @@ target-x86_64-unknown-linux-musl = ["api", "api-client", "rdkafka?/cmake_build", target-powerpc64le-unknown-linux-gnu = ["api", "api-client", "enrichment-tables", "rdkafka?/cmake_build", "sinks", "sources", "sources-dnstap", "transforms", "unix", "vrl-cli", "enterprise"] # Currently doesn't build due to lack of support for 64-bit atomics target-powerpc-unknown-linux-gnu = ["api", "api-client", "enrichment-tables", "rdkafka?/cmake_build", "sinks", "sources", "sources-dnstap", "transforms", "unix", "vrl-cli", "enterprise"] +target-x86_64-unknown-freebsd = [] # Enables features that work only on systems providing `cfg(unix)` unix = ["tikv-jemallocator"] diff --git a/Cross.toml b/Cross.toml index 1b138c3638f6d..293184f24946a 100644 --- a/Cross.toml +++ b/Cross.toml @@ -28,3 +28,6 @@ image = "vector-cross-env:armv7-unknown-linux-gnueabihf" [target.armv7-unknown-linux-musleabihf] image = "vector-cross-env:armv7-unknown-linux-musleabihf" + +[target.x86_64-unknown-freebsd] +image = "vector-cross-env:x86_64-unknown-freebsd" diff --git a/scripts/cross/x86_64-unknown-freebsd.dockerfile b/scripts/cross/x86_64-unknown-freebsd.dockerfile new file mode 100644 index 0000000000000..79129d3973dfc --- /dev/null +++ b/scripts/cross/x86_64-unknown-freebsd.dockerfile @@ -0,0 +1,6 @@ +FROM ghcr.io/cross-rs/x86_64-unknown-freebsd:main + +# freebsd image is actually based on Ubuntu and copies over FreeBSD libraries + +COPY bootstrap-ubuntu.sh . +RUN ./bootstrap-ubuntu.sh