[clang] [Driver] Disable sanitizer ignorelists on Darwin (PR #195690)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 19:03:34 PDT 2026
vitalybuka wrote:
> > Why no to use OPT_fno_sanitize_ignorelist on their side?
>
> This creates a difference between the (swiftlang) clang importer and everything else on Darwin. We could somewhat mitigate that by removing the ignorelists entirely on Darwin (but there's currently no option to do that, hence I included it as part of #195396). In addition, if we start passing `-fno-sanitize-ignorelist` we'd have to worry about whether we'd be ignoring a non-system `-fsanitize-ignorelist` option that was specified earlier on the command line.
>
> Are other platforms even using this feature? The current `asan_ignorelist.txt` includes one line for Windows that was added 12 years ago. I understand the concern about having Darwin doing something different than other platforms, but I can't imagine we are the only platform that isn't using these ignorelists and would disable them if given the option.
Consistent behavior would be nice, but...
Internally our build server side build system relies on default location of ignorelist and we have out specific content there, not default. Updating should not be hard. I am responsible for those and I am OK to update out build configs.
However, we have Chromium, Android, Fuchsia, and then many other LLVM users. Even Darwin only patch can break users.
Added some folks who may have opinion. Options are:
1. Change Darwin
2. Change All
3. Something else
https://github.com/llvm/llvm-project/pull/195690
More information about the cfe-commits
mailing list