-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Discard swift.ld in favor of portable solution and support gold linker in Swift #1157
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,27 @@ static void updateRuntimeLibraryPath(SearchPathOptions &SearchPathOpts, | |
| llvm::sys::path::append(LibPath, getPlatformNameForTriple(Triple)); | ||
| SearchPathOpts.RuntimeLibraryPath = LibPath.str(); | ||
|
|
||
| llvm::sys::path::append(LibPath, Triple.getArchName()); | ||
| // The linux provided triple for ARM contains a trailing 'l' | ||
| // denoting little-endian. This is not used in the path for | ||
| // libraries. LLVM matches these SubArchTypes to the generic | ||
| // ARMSubArch_v7 (for example) type. If that is the case, | ||
| // use the base of the architecture type in the library path. | ||
| if (Triple.isOSLinux()) { | ||
|
||
| switch(Triple.getSubArch()) { | ||
| default: | ||
| llvm::sys::path::append(LibPath, Triple.getArchName()); | ||
| break; | ||
| case llvm::Triple::SubArchType::ARMSubArch_v7: | ||
| llvm::sys::path::append(LibPath, "armv7"); | ||
| break; | ||
| case llvm::Triple::SubArchType::ARMSubArch_v6: | ||
| llvm::sys::path::append(LibPath, "armv6"); | ||
| break; | ||
| } | ||
| } else { | ||
| llvm::sys::path::append(LibPath, Triple.getArchName()); | ||
| } | ||
|
|
||
| SearchPathOpts.RuntimeLibraryImportPath = LibPath.str(); | ||
| } | ||
|
|
||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this archive these object files into static archive versions of the libraries? It seems like we don't want that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value of SWIFT_OBJECT_{BEGIN,END} is assigned only when libkind is SHARED, so they should not be present when generating static libraries targets.