mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sanitizers] Add new sanitize-stable-abi flag for libsanitizers.
This patch adds a new flag sanitize-stable-abi to support linking against the Sanitizers stable ABI added recently in compiler-rt. The patch also passes extra options for the ASan pass when using this flag to outline instrumentation code and remove version check. rdar://112915278
This commit is contained in:
@@ -2409,6 +2409,11 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
parseSanitizerAddressUseODRIndicator(A, Opts.Sanitizers, Diags);
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_stable_abi_EQ)) {
|
||||
IRGenOpts.SanitizerUseStableABI =
|
||||
parseSanitizerUseStableABI(A, Opts.Sanitizers, Diags);
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_enable_verify_exclusivity,
|
||||
OPT_disable_verify_exclusivity)) {
|
||||
Opts.VerifyExclusivity
|
||||
|
||||
Reference in New Issue
Block a user