Skip to content
  • Thomas Miedema's avatar
    DynFlags: remove Opt_Static · 6d9c18cb
    Thomas Miedema authored and Ben Gamari's avatar Ben Gamari committed
    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
    6d9c18cb