[commit: ghc] master: DynFlags: remove Opt_Static (6d9c18c)
git at git.haskell.org
git at git.haskell.org
Tue Dec 15 00:37:57 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6d9c18cb43c1fda95932ef0f640dcf41906a2773/ghc
>---------------------------------------------------------------
commit 6d9c18cb43c1fda95932ef0f640dcf41906a2773
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Tue Dec 15 01:07:24 2015 +0100
DynFlags: remove Opt_Static
There are currently 2 different ways to test for a static or dynamic
build:
* Test if WayDyn is in ways
* Test if Opt_Static is set
The problem is that these can easily go out of sync, especially when
using the
GHC API.
This commit replaces all queries of Opt_Static with an equivalent query
of
WayDyn. This would have prevented bug #8294 and fixes #11154.
Reviewers: hvr, austin, bgamari
Reviewed By: austin, bgamari
Differential Revision: https://phabricator.haskell.org/D1607
GHC Trac Issues: #10636
>---------------------------------------------------------------
6d9c18cb43c1fda95932ef0f640dcf41906a2773
compiler/cmm/CLabel.hs | 10 +++++-----
compiler/ghci/Linker.hs | 11 ++++++-----
compiler/main/DriverPipeline.hs | 8 ++++----
compiler/main/DynFlags.hs | 13 ++++---------
compiler/main/Packages.hs | 6 +++---
compiler/main/SysTools.hs | 2 +-
compiler/nativeGen/PIC.hs | 14 +++++++-------
7 files changed, 30 insertions(+), 34 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 6d9c18cb43c1fda95932ef0f640dcf41906a2773
More information about the ghc-commits
mailing list