mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a new frontend option -sil-serialize-witness-tables to force serialization of SIL witness tables
This option is supposed to be used only for compiling overlays. User code should never be compiled with this option.
This commit is contained in:
@@ -1329,6 +1329,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
Opts.MergePartialModules = true;
|
||||
|
||||
Opts.SILSerializeAll |= Args.hasArg(OPT_sil_serialize_all);
|
||||
Opts.SILSerializeWitnessTables |=
|
||||
Args.hasArg(OPT_sil_serialize_witness_tables);
|
||||
|
||||
// Parse the optimization level.
|
||||
if (const Arg *A = Args.getLastArg(OPT_O_Group)) {
|
||||
if (A->getOption().matches(OPT_Onone)) {
|
||||
|
||||
Reference in New Issue
Block a user