mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #37768 from xymus/swiftmodule-sdk
[Serialization] Restrict loading swiftmodule files to the SDK that built them
This commit is contained in:
@@ -777,6 +777,11 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
}
|
||||
|
||||
// Get the SDK name.
|
||||
if (Arg *A = Args.getLastArg(options::OPT_target_sdk_name)) {
|
||||
Opts.SDKName = A->getValue();
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_entry_point_function_name)) {
|
||||
Opts.entryPointFunctionName = A->getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user