From a5b88767cb4de83f7a72b0da0c606bef0c3a824b Mon Sep 17 00:00:00 2001 From: Evgeny Safronov Date: Tue, 20 Jan 2026 15:38:59 +0300 Subject: [PATCH] fix: CPU compatibility - use haswell target for DPD --- Cargo.lock | 2 +- Dockerfile | 1 + Dockerfile.ubuntu18 | 1 + dwd/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4c5ae06..f21e05a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -370,7 +370,7 @@ checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" [[package]] name = "dwd" -version = "0.6.1" +version = "0.6.2" dependencies = [ "anyhow", "axum", diff --git a/Dockerfile b/Dockerfile index d8804ff..0a0ac7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,7 @@ RUN meson setup \ --prefix=/usr/local \ --libdir=lib64 \ -Ddefault_library=static \ + -Dmachine=haswell \ -Ddisable_drivers=net/mlx4 \ -Ddisable_apps=* \ -Denable_apps= \ diff --git a/Dockerfile.ubuntu18 b/Dockerfile.ubuntu18 index 8f5e83c..365d258 100644 --- a/Dockerfile.ubuntu18 +++ b/Dockerfile.ubuntu18 @@ -92,6 +92,7 @@ RUN PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH \ --prefix=/usr/local \ --libdir=lib64 \ -Ddefault_library=static \ + -Dmachine=haswell \ -Ddisable_drivers=net/mlx4 \ -Ddisable_apps=* \ -Denable_apps= \ diff --git a/dwd/Cargo.toml b/dwd/Cargo.toml index 7d0b5d2..6db623a 100644 --- a/dwd/Cargo.toml +++ b/dwd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dwd" -version = "0.6.1" +version = "0.6.2" edition = "2021" rust-version = "1.87" publish = true