mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialize and honor whether a particular library should be force-loaded.
When a module built with -autolink-force-load is imported, add a reference to a special symbol in the corresponding library so that ld is forced to link it. This means the library will be linked into the final binary even if no other symbols are used (which happens for some of our overlays that just add category methods to Objective-C classes). Second part of <rdar://problem/16829587> Swift SVN r17751
This commit is contained in:
@@ -160,8 +160,9 @@ namespace swift {
|
||||
const SILModule *M = nullptr,
|
||||
bool serializeAllSIL = false,
|
||||
ArrayRef<std::string> inputFilenames = {},
|
||||
StringRef importedHeader = {},
|
||||
StringRef moduleLinkName = {},
|
||||
StringRef importedHeader = {});
|
||||
bool autolinkForceLoad = false);
|
||||
|
||||
/// Turn the given Swift module into either LLVM IR or native code
|
||||
/// and return the generated LLVM IR module.
|
||||
|
||||
Reference in New Issue
Block a user