Make all linker warnings errors in CI - #667
Merged
Merged
Conversation
Member
Author
|
Failure notes:
|
Member
|
For MSVC it's |
Member
Author
|
Does it ignore unrecognized link args? |
Member
|
I mean... |
Member
Author
|
Oh, unrecognized linker args are warnings by default rather than errors? I was just expecting it to complain like the other targets that don't support |
tgross35
force-pushed
the
linker-errors
branch
from
September 28, 2024 23:37
feffc82 to
fec26ac
Compare
tgross35
force-pushed
the
linker-errors
branch
from
January 27, 2025 07:44
fec26ac to
902278b
Compare
tgross35
force-pushed
the
linker-errors
branch
from
February 23, 2025 08:42
902278b to
0b8c696
Compare
Member
Author
|
The wasm issue is rust-lang/rust#132802, I still haven't updated the Windows flags. |
This comment has been minimized.
This comment has been minimized.
Since 1.97, linker warnings can be denied via rustc.
tgross35
force-pushed
the
linker-errors
branch
from
August 17, 2026 09:03
7319fdb to
4e595b4
Compare
tgross35
marked this pull request as ready for review
August 17, 2026 09:12
Member
Author
|
Since 1.97, Previous version, for reference: # Make all linker warnings errors
if [[ "$target" == *"-apple-"* || "$target" == "thumb"* ]]; then
extra_rustflags=""
else
extra_rustflags=" -Clink-arg=-Wl,--fatal-warnings"
fi
export RUSTFLAGS="${RUSTFLAGS:-}$extra_rustflags" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Give us a better chance of detecting any kind of link issues or user-visible warnings in advance.
Inspired by #665 (comment)