mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Add -tbd-install_name frontend argument.
This commit is contained in:
@@ -745,8 +745,12 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
if (!opts.TBDPath.empty()) {
|
||||
const auto &silOpts = Invocation.getSILOptions();
|
||||
auto hasMultipleIRGenThreads = silOpts.NumThreads > 1;
|
||||
auto installName = opts.TBDInstallName.empty()
|
||||
? "lib" + Invocation.getModuleName().str() + ".dylib"
|
||||
: opts.TBDInstallName;
|
||||
|
||||
if (writeTBD(Instance.getMainModule(), hasMultipleIRGenThreads,
|
||||
silOpts.SILSerializeWitnessTables, opts.TBDPath))
|
||||
silOpts.SILSerializeWitnessTables, opts.TBDPath, installName))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user