mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ConstraintSystem] Add an option to disable the constraint solver perf hacks.
This is helpful in experimenting with constraint solver changes that might help us remove some of these unsound options. It's not ever mean to be enabled, but if we're able to remove the things guarded by the option we can eventually remove the option.
This commit is contained in:
@@ -352,6 +352,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.UseDarwinPreStableABIBit = true;
|
||||
#endif
|
||||
|
||||
Opts.DisableConstraintSolverPerformanceHacks |=
|
||||
Args.hasArg(OPT_disable_constraint_solver_performance_hacks);
|
||||
|
||||
// Must be processed after any other language options that could affect
|
||||
// platform conditions.
|
||||
bool UnsupportedOS, UnsupportedArch;
|
||||
|
||||
Reference in New Issue
Block a user