Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • hadrian/src/Rules/Gmp.hs
    ... ... @@ -12,7 +12,6 @@ import Utilities
    12 12
     import Hadrian.BuildPath
    
    13 13
     import Hadrian.Expression
    
    14 14
     import Settings.Builders.Common (cArgs, getStagedCCFlags)
    
    15
    -import GHC.Platform.ArchOS
    
    16 15
     
    
    17 16
     -- | Build in-tree GMP library objects (if GmpInTree flag is set) and return
    
    18 17
     -- their paths.
    
    ... ... @@ -128,7 +127,10 @@ gmpRules = do
    128 127
                     mconcat
    
    129 128
                         [ cArgs
    
    130 129
                         , getStagedCCFlags
    
    131
    -                    , anyTargetArch [ArchWasm32] ? arg "-fvisibility=default"
    
    130
    +                    -- gmp symbols are only used by bignum logic in
    
    131
    +                    -- ghc-internal and shouldn't be exported by the
    
    132
    +                    -- ghc-internal shared library.
    
    133
    +                    , arg "-fvisibility=hidden"
    
    132 134
                         ]
    
    133 135
                 env <- sequence
    
    134 136
                          [ builderEnvironment "CC" $ Cc CompileC (stage ctx)