This is an archive of the discontinued LLVM Phabricator instance.

[sanitizers test CMake] further refactor testing CMake for tsan
ClosedPublic

Authored by george.karpenkov on Jul 26 2017, 1:57 PM.

Details

Summary

This diff assumes existence of https://reviews.llvm.org/D35870.

TSan tests on Darwin first link all libraries into a static archive file.
With this change, the linking is done once per all architecture,
and previously the linking step was repeated per each architecture per each add_tsan_test call.
Furthermore, the code is cleared up.

Diff Detail

Repository
rL LLVM

Event Timeline

lib/tsan/tests/CMakeLists.txt
18 ↗(On Diff #108353)

Variable wasn't used anywhere.

Do not hardcode static lib path.

george.karpenkov edited the summary of this revision. (Show Details)

Removing redundant dependency: object files will already conditionally depend on tsan, and the output depends on produced object files.

Do not hardcode archive output path.

vitalybuka accepted this revision.Jul 27 2017, 1:12 PM
This revision is now accepted and ready to land.Jul 27 2017, 1:12 PM
This revision was automatically updated to reflect the committed changes.