This is an archive of the discontinued LLVM Phabricator instance.

[llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake
ClosedPublic

Authored by ZarkoCA on Nov 11 2021, 10:09 AM.

Details

Summary

This patch changes it to ignorelist and contains a filename change for the
.txt file that's called.

Diff Detail

Event Timeline

ZarkoCA created this revision.Nov 11 2021, 10:09 AM
ZarkoCA requested review of this revision.Nov 11 2021, 10:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2021, 10:09 AM
vitalybuka accepted this revision.Nov 12 2021, 11:12 AM
This revision is now accepted and ready to land.Nov 12 2021, 11:12 AM
bjope added a subscriber: bjope.Nov 15 2021, 10:43 AM
bjope added inline comments.
llvm/cmake/modules/HandleLLVMOptions.cmake
875

Now I can't build llvm with ubsan, using an older version of clang, without getting lots of errors such as

`clang-13: error: unknown argument: '-fsanitize-ignorelist=/workspace/llvm/llvm-main-sanitize-ubsan/llvm/utils/sanitizers/ubsan_ignorelist.txt'`

that seems a bit unfortunate (or are there different requirements on which compiler version that is needed when building llvm depending on if I enable sanitizers or not?).

lebedev.ri added inline comments.
llvm/cmake/modules/HandleLLVMOptions.cmake
875

If that isn't supported even in the last released version of llvm then please revert immediately.

ZarkoCA added inline comments.Nov 15 2021, 10:55 AM
llvm/cmake/modules/HandleLLVMOptions.cmake
875

Reverted in 44a64afd43943ed6f47c37f61a6cd2e99c7287f3 sorry about this.

ZarkoCA added inline comments.Nov 15 2021, 11:40 AM
llvm/cmake/modules/HandleLLVMOptions.cmake
875

@lebedev.ri it looks like this option has been supported starting from Clang 13.0. Is that too new?