mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #68649 from kubamracek/embedded-throw-as-trap
[embedded] Add a temporary flag that turns throws into traps so that programs that use throwing can at least be compiled for now
This commit is contained in:
@@ -723,6 +723,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
|
||||
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);
|
||||
|
||||
Opts.ThrowsAsTraps |= Args.hasArg(OPT_throws_as_traps);
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_enable_objc_attr_requires_foundation_module,
|
||||
OPT_disable_objc_attr_requires_foundation_module)) {
|
||||
Opts.EnableObjCAttrRequiresFoundation
|
||||
|
||||
Reference in New Issue
Block a user