Determine whether a given sanitizer is available based on the presenc… (#14919)

Determine whether a given sanitizer is available based on the presence of the library.

rdar://37192887
This commit is contained in:
George Karpenkov
2018-03-02 16:57:45 -08:00
committed by GitHub
parent dcd8bb8c5a
commit a65da887f2
18 changed files with 62 additions and 44 deletions

View File

@@ -686,7 +686,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_EQ)) {
Opts.Sanitizers = parseSanitizerArgValues(
Args, A, Triple, Diags,
/* sanitizerRuntimeLibExists= */[](StringRef libName) {
/* sanitizerRuntimeLibExists= */[](StringRef libName, bool shared) {
// The driver has checked the existence of the library
// already.