mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -1849,6 +1849,11 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
|
||||
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_stable_abi_EQ)) {
|
||||
OI.SanitizerUseStableABI =
|
||||
parseSanitizerUseStableABI(A, OI.SelectedSanitizers, Diags);
|
||||
}
|
||||
|
||||
if (TC.getTriple().isOSWindows()) {
|
||||
if (const Arg *A = Args.getLastArg(options::OPT_libc)) {
|
||||
OI.RuntimeVariant =
|
||||
|
||||
Reference in New Issue
Block a user