Opened 5 years ago

Closed 5 years ago

#9956 closed bug (fixed)

Command line flag deprecated warning could be annoying for -Werror users

Reported by: ezyang Owned by: ezyang
Priority: high Milestone: 7.10.1
Component: Compiler Version: 7.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D742
Wiki Page:


In 7.10 we deprecated the poorly named -package-name for -this-package-key. However, I was working with GHC's validate script and I noticed that this behavior actually might be pretty annoying, because it causes GHC to fail on -Werror, and there doesn't seem to be any way of turning off this behavior.

So maybe we should add a -fno-warn flag which controls flag warnings. But old GHCs wouldn't accept that flag, so it doesn't make it any more convenient for people to keep their old build scripts running while squelching the warning. Or we could drop the deprecation warning for now and start bleating about it next release.

Setting priority high because whatever we decide to do, we need to decide it before 7.10 release.

Change History (2)

comment:1 Changed 5 years ago by thoughtpolice

Differential Rev(s): Phab:D742
Status: newpatch

comment:2 Changed 5 years ago by thoughtpolice

Resolution: fixed
Status: patchclosed

Merged Phab:D742 to ghc-7.10 via fb326dba5141f8636cb0c0eb0639b8d0c0caa931.

Note this is only being committed to the ghc-7.10 branch; this warning will remain in HEAD.

Note: See TracTickets for help on using tickets.