[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:
usama
2023-11-16 17:14:19 -08:00
committed by Mariusz Borsa
parent ef1f9ebcb5
commit 3053fe01b5
11 changed files with 57 additions and 3 deletions

View File

@@ -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 =