Skip to content
  • Rodrigo Mesquita's avatar
    55bbea03
    Suppress duplicate librares linker warning of new macOS linker · 55bbea03
    Rodrigo Mesquita authored and Zubin's avatar Zubin committed
    Fixes #24167
    
    XCode 15 introduced a new linker which warns on duplicate libraries being
    linked. To disable this warning, we pass -Wl,-no_warn_duplicate_libraries as
    suggested by Brad King in CMake issue #25297.
    
    This flag isn't necessarily available to other linkers on darwin, so we must
    only configure it into the CC linker arguments if valid.
    
    (cherry picked from commit e98051a5)
    55bbea03
    Suppress duplicate librares linker warning of new macOS linker
    Rodrigo Mesquita authored and Zubin's avatar Zubin committed
    Fixes #24167
    
    XCode 15 introduced a new linker which warns on duplicate libraries being
    linked. To disable this warning, we pass -Wl,-no_warn_duplicate_libraries as
    suggested by Brad King in CMake issue #25297.
    
    This flag isn't necessarily available to other linkers on darwin, so we must
    only configure it into the CC linker arguments if valid.
    
    (cherry picked from commit e98051a5)
Loading