From 7ff5bdfdcec8c5119c7ae2ea577308e8953ffcac Mon Sep 17 00:00:00 2001 From: johnthagen Date: Wed, 11 Sep 2024 07:07:47 -0400 Subject: [PATCH 1/2] Add -Zfmt-debug=none to nightly CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e83b34..e4da0df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,5 +75,5 @@ jobs: working-directory: ${{ matrix.project_dir }} run: > rustup component add rust-src; - RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features="optimize_for_size" --target x86_64-unknown-linux-gnu --release; + RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features="optimize_for_size" --target x86_64-unknown-linux-gnu --release; cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target x86_64-unknown-linux-gnu --release; From 6fb4c1c711f982966259c1b9f9b7c82d50a5d5e5 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Wed, 11 Sep 2024 07:12:31 -0400 Subject: [PATCH 2/2] Update libstd example to include -Zfmt-debug --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6bde5b..d2b88ac 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,8 @@ host: x86_64-apple-darwin # Use that target triple when building with build-std. # Add the =std,panic_abort to the option to make panic = "abort" Cargo.toml option work. # See: https://github.com/rust-lang/wg-cargo-std-aware/issues/56 -$ RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build -Z build-std=std,panic_abort \ +$ RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" cargo +nightly build \ + -Z build-std=std,panic_abort \ -Z build-std-features="optimize_for_size" \ --target x86_64-apple-darwin --release ```