Skip to content

Commit

Permalink
Ignore Windows linker warning
Browse files Browse the repository at this point in the history
    error: linker stderr: Warning: corrupt .drectve at end of def file␍
           Warning: corrupt .drectve at end of def file␍
      |
      = note: `-D linker-messages` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(linker_messages)]`
  • Loading branch information
dtolnay committed Jan 26, 2025
1 parent 6dd5b9c commit 750a243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
- name: Disable rust-lld
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zlinker-features=-lld >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- name: Ignore Windows linker warning
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV
if: matrix.rust == 'nightly-x86_64-pc-windows-gnu'
shell: bash
- run: cargo check --manifest-path tests/crate/Cargo.toml
- run: cargo test -p linkme -p linkme-impl
# windows-gnu: https://github.com/dtolnay/linkme/issues/25
Expand Down

0 comments on commit 750a243

Please sign in to comment.