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

Allow passing -nostdlib to clang linker driver #1547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Feb 20, 2024

  1. Allow passing -nostdlib to clang linker driver

    Embedded targets may need `-nostdlib` passed to `clang` linker driver in certain situations, see #1534 for more details.
    
    Currently, `swiftc` doesn't recognize `-nostdlib` at all, while `-Xlinker -nostdlib` passed to a `swiftc` link job from the build system will be passed verbatim to the linker and not recognized by the linker driver. We should support this flag in `swiftc` to fix this.
    MaxDesiatov committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    36ae38d View commit details
    Browse the repository at this point in the history