Skip to content
  • Sylvain Henry's avatar
    Remove dynamic-by-default (#16782) · d014ab0d
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    Dynamic-by-default was a mechanism to automatically select the -dynamic
    way for some targets.
    
    It was implemented in a convoluted way: it was defined as a flavour
    option, hence it couldn't be passed as a global settings (which are
    produced by `configure` before considering flavours), so a build system
    rule was used to pass -DDYNAMIC_BY_DEFAULT to the C compiler so that
    deriveConstants could infer it.
    
    * Make build system has it disabled for 8 years (951e28c0)
    * It has never been implemented in Hadrian
    * Last time someone tried to enable it 1 year ago it didn't work (!2436)
    * Having this as a global constant impedes making GHC multi-target (see !5427)
    
    This commit fully removes support for dynamic-by-default. If someone
    wants to reimplement something like this, it would probably need to move
    the logic in the compiler.
    
    (Doing this would probably need some refactoring of the way the compiler
    handles DynFlags: DynFlags are used to store and t...
    d014ab0d