mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add flag for minimum inlining version
This commit is contained in:
committed by
Allan Shortlidge
parent
cdcd726f92
commit
bbcd980aff
@@ -1654,6 +1654,13 @@ InterfaceSubContextDelegateImpl::runInSubCompilerInstance(StringRef moduleName,
|
||||
.setMainAndSupplementaryOutputs(outputFiles, ModuleOutputPaths);
|
||||
|
||||
SmallVector<const char *, 64> SubArgs;
|
||||
|
||||
// If the interface was emitted by a compiler that didn't print
|
||||
// `-target-min-inlining-version` into it, default to using the version from
|
||||
// the target triple, emulating previous behavior.
|
||||
SubArgs.push_back("-target-min-inlining-version");
|
||||
SubArgs.push_back("target");
|
||||
|
||||
std::string CompilerVersion;
|
||||
// Extract compiler arguments from the interface file and use them to configure
|
||||
// the compiler invocation.
|
||||
|
||||
Reference in New Issue
Block a user