The asan tests should only run on builds that have LLVM_USE_SANITIZER set. The feature 'asan' reflects this and is required for test/CodeGen/lifetime-asan.c
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This doesn’t make sense to me, Clang is able to produce ASanified code even when the compiler itself isn’t ASanified (that’s what LLVM_USE_SANITIZER does). Where exactly is this test failing?
Comment Actions
Actually there are other tests with -fsanitize=address
I see only difference in %clang vs %clang_cc1?
Could you try this?
Comment Actions
Oh, I see, most asan tests in clang use cross-compiler, e.g.: -target x86_64-linux-gnu
Comment Actions
Right. I was confused about the meaning of that feature. The test fails with:
clang-3.9: error: unsupported option '-fsanitize=address' for target 'aarch64-arm-none-eabi’
The patch suggested by vitalybuka seems to work. So I suggest we go for that.