Skip to content

[unix] Fix linker argument in Unix toolchains #1625

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

Closed
wants to merge 1 commit into from

Conversation

drodriguez
Copy link
Contributor

The spelling of the linker is -fuse-ld=, not --fuse-ld=, as it can be seen in 1 and as used in the C++ driver in 2.

The code was correct before #1545 using -fuse-ld=, but was changed to --fuse-ld=. The test was testing for the command line containing the same spelling, so it would had never failed, but running the actual command line would had failed. That code was eventually reverted and reverted back in #1608.

The spelling of the linker is `-fuse-ld=`, not `--fuse-ld=`, as it can
be seen in [1] and as used in the C++ driver in [2].

The code was correct before swiftlang#1545 using `-fuse-ld=`, but was changed to
`--fuse-ld=`. The test was testing for the command line containing the
same spelling, so it would had never failed, but running the actual
command line would had failed. That code was eventually reverted and
reverted back in swiftlang#1608.

[1]: https://github.com/apple/llvm-project/blob/e33819dff1cbf7a90b0216a4993126cb11440d45/clang/include/clang/Driver/Options.td#L5267
[2]: https://github.com/apple/swift/blob/319f36b01baa082fd2d2640d6e320594752702d0/lib/Driver/UnixToolChains.cpp#L234
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez
Copy link
Contributor Author

@swift-ci please test

@drodriguez
Copy link
Contributor Author

@etcwilde can you have a look and review this one? Thanks!

@etcwilde
Copy link
Contributor

Already fixed #1624.

@drodriguez
Copy link
Contributor Author

Just late by 5 hours. Typical me :D

Thanks for fixing!

@drodriguez drodriguez closed this May 30, 2024
@drodriguez drodriguez deleted the fix-fuse-ld-linux branch November 5, 2024 17:56
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

Successfully merging this pull request may close these issues.

2 participants