[commit: ghc] master: Change how we handle options required by 'way's (f6983ef)
Ian Lynagh <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master http://hackage.haskell.org/trac/ghc/changeset/f6983efb613da3b7d8a67658ea41a967327fa3e7 >--------------------------------------------------------------- commit f6983efb613da3b7d8a67658ea41a967327fa3e7 Author: Ian Lynagh <[email protected]> Date: Sat Sep 29 22:30:48 2012 +0100 Change how we handle options required by 'way's We used to add the options when the way was enabled, but this caused problems with the static/dynamic choice, as once the 'dynamic' options had been added it wasn't easy to remove them. We therefore didn't allow -static on the commandline if we'd already seen -static, which kludged around the issue. But apart from being unsatisfactory in the first place, this is a problem if we want to allow -dynamic being on by default, as there wouldn't be any way to turn it off. So now we add C/CPP/linker flags required by the 'way's when flags are requested, rather than during flag parsing. compiler/main/DynFlags.hs | 152 ++++++++++++++++++++++----------------------- 1 files changed, 74 insertions(+), 78 deletions(-) Diff suppressed because of size. To see it, use: git show f6983efb613da3b7d8a67658ea41a967327fa3e7