This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Disable building of profiling runtime when LLVM_USE_SANITIZER is set
ClosedPublic

Authored by kubamracek on Sep 16 2016, 4:19 AM.

Details

Summary

Currently, when doing a ASanified build of LLVM (with Clang, compiler-rt and libcxx) via -DLLVM_USE_SANITIZER=Address and not using any other options, we already disable building of sanitizer runtimes (because they themselves can’t be sanitized) and also exclude the sanitizer tests. However, the same is not done for the profiling runtime, which will build fine, but then all the tests fail due to linking errors. Let’s disable the profiling runtime as well (when LLVM_USE_SANITIZER is set).

This is currently failing on the Darwin ASan+UBSan bot: http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/2425/console

Diff Detail

Event Timeline

kubamracek updated this revision to Diff 71613.Sep 16 2016, 4:19 AM
kubamracek retitled this revision from to [compiler-rt] Disable building of profiling runtime when LLVM_USE_SANITIZER is set.
kubamracek updated this object.
kubamracek added reviewers: davidxl, vsk, compnerd.
kubamracek added subscribers: llvm-commits, zaks.anna.
davidxl accepted this revision.Sep 16 2016, 9:35 AM
davidxl edited edge metadata.

lgtm

This revision is now accepted and ready to land.Sep 16 2016, 9:35 AM
This revision was automatically updated to reflect the committed changes.