From bc483b2a1dfdd39bf21a10cea67c1514df7c9714 Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Wed, 29 Apr 2026 15:49:30 +0100 Subject: [PATCH] Another try to fix windows --- .github/workflows/reusable-build-test-config.yml | 4 ++-- crates/.cargo/config.toml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-build-test-config.yml b/.github/workflows/reusable-build-test-config.yml index 810fd29753..13c8be5c5d 100644 --- a/.github/workflows/reusable-build-test-config.yml +++ b/.github/workflows/reusable-build-test-config.yml @@ -231,11 +231,11 @@ jobs: working-directory: ${{ env.BUILD_DIR }} run: | ldd ./xrpld - if [ "$(ldd ./xrpld | grep -E '(libstdc\+\+|libgcc)' | wc -l)" -eq 0 ]; then + if [ "$(ldd ./xrpld | grep -E 'libstdc\+\+' | wc -l)" -eq 0 ]; then echo 'The binary is statically linked.' else echo 'The binary is dynamically linked.' - # exit 1 + exit 1 fi - name: Verify presence of instrumentation (Linux) diff --git a/crates/.cargo/config.toml b/crates/.cargo/config.toml index b5c7a05b8b..57da03580b 100644 --- a/crates/.cargo/config.toml +++ b/crates/.cargo/config.toml @@ -1,2 +1,5 @@ [target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-args=-static-libgcc"] + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"]