mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ownership] Change the stdlib to serialize code in ossa form on Darwin.
There is some sort of ASAN issue that this exposes on Linux, so I am going to do this on Darwin and then debug the Linux issue using ASAN over the weekend/next week.
This commit is contained in:
@@ -1204,6 +1204,11 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
Args.hasArg(OPT_sil_stop_optzns_before_lowering_ownership);
|
||||
if (const Arg *A = Args.getLastArg(OPT_external_pass_pipeline_filename))
|
||||
Opts.ExternalPassPipelineFilename = A->getValue();
|
||||
// If our triple is a darwin triple, lower ownership on the stdlib after we
|
||||
// serialize.
|
||||
if (Triple.isOSDarwin()) {
|
||||
Opts.SerializeStdlibWithOwnershipWithOpts = true;
|
||||
}
|
||||
|
||||
Opts.GenerateProfile |= Args.hasArg(OPT_profile_generate);
|
||||
const Arg *ProfileUse = Args.getLastArg(OPT_profile_use);
|
||||
|
||||
Reference in New Issue
Block a user