Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a build setting to disable duplicate library warnings from the linker #26

Open
cmcgee1024 opened this issue Jan 31, 2025 · 1 comment

Comments

@cmcgee1024
Copy link
Member

Current, SwiftPM sets the "OTHER_LDFLAGS" build setting to $(inherited) -Wl,-no_warn_duplicate_libraries so that the Apple platform linker won't emit this warning. However, this flag is unknown to linkers other than ld64 for Apple platforms.

There should be a higher-level build setting so that SwiftPM can set it and it takes effect on Apple platforms, and equivalent setting can be used for other linkers.

@jakepetroules
Copy link
Collaborator

This was also a workaround for a bug, so ideally we'd fix the underlying issue rather than propagating this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants