This behaves the same as -fatal_warnings but provides a consistent
interface with ld.lld and ld.gold. This is useful for build tools like
bazel to be able to provide a consistent interface for 'warnings as
errors' to the linker.
Details
- Reviewers
gkm - Group Reviewers
Restricted Project
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Options across binary formats are just so different. I think a user seeing -option-name may probably be more confused.
Not playing the house rule can probably just lead to confusion.
BTW: for ELF, I'd like users specify --fatal-warnings instead of -fatal-warnings.
I did hide this by default in help to steer folks towards the default. For users who don't manually pass a lot of linker flags (vs clang passing them), this might be one of the few they do pass themselves, so having that unified across linkers seems valuable to me.
BTW: for ELF, I'd like users specify --fatal-warnings instead of -fatal-warnings.
I think either option would be fine in this case if that's the recommendation
I'm with MaskRay here, I think each platform differs too much to have a consistent linker flag API
+1; lld-link doesn't have this either, and even if we add this alias there's a ton of other options that are different. And if bazel (or similar) _requires_ this flag, it won't work with link.exe and ld64, and the point of the compatible drivers is to make linkers mostly interchangeable on each os.
(Otoh if we do end up adding it, please use two -- as prefix and move it up into the "lld-only" section further up )