Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
19333 commits behind the upstream repository.
  • Rodrigo Mesquita's avatar
    e6c803f7
    darwin: Fix single_module is obsolete warning · e6c803f7
    Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
    In XCode 15's linker, -single_module is the default and otherwise
    passing it as a flag results in a warning being raised:
    
        ld: warning: -single_module is obsolete
    
    This patch fixes this warning by, at configure time, determining whether
    the linker supports -single_module (which is likely false for all
    non-darwin linkers, and true for darwin linkers in previous versions of
    macOS), and using that information at runtime to decide to pass or not
    the flag in the invocation.
    
    Fixes #24168
    e6c803f7
    History
    darwin: Fix single_module is obsolete warning
    Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
    In XCode 15's linker, -single_module is the default and otherwise
    passing it as a flag results in a warning being raised:
    
        ld: warning: -single_module is obsolete
    
    This patch fixes this warning by, at configure time, determining whether
    the linker supports -single_module (which is likely false for all
    non-darwin linkers, and true for darwin linkers in previous versions of
    macOS), and using that information at runtime to decide to pass or not
    the flag in the invocation.
    
    Fixes #24168
Code owners
Assign users and groups as approvers for specific file changes. Learn more.