[clang] [Clang][Basic] Add `__has_feature` checks for CFI sanitizers (PR #151348)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 14:18:23 PDT 2025


fmayer wrote:

> Added a REQUIRES: target={{x86_64.*-linux.*}} in my last commit to fix the test failure on windows (-fsanitize=cfi-mfcall is not supported on windows) .
Since this PR is only adding a preprocessor feature and not something platform specific, I think it's fine to only test on x86_64-linux and skip other targets?


Yeah, I did the same with the UBSan change.

https://github.com/llvm/llvm-project/pull/151348


More information about the cfe-commits mailing list