This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add OBJECT_LIBS option to add_compiler_rt_runtime, and refactored asan call site to use it.
ClosedPublic

Authored by beanz on Aug 25 2015, 2:49 PM.

Details

Summary

This is one more step to allow us to eliminate platform-specific code from the library CMakeLists files. Subsequent patches will refactor all call sites to use this and other new features.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 33132.Aug 25 2015, 2:49 PM
beanz retitled this revision from to [CMake] Add OBJECT_LIBS option to add_compiler_rt_runtime, and refactored asan call site to use it..
beanz updated this object.
beanz added a subscriber: llvm-commits.
samsonov accepted this revision.Aug 25 2015, 4:54 PM
samsonov edited edge metadata.

LGTM (please address comments below).

cmake/Modules/AddCompilerRT.cmake
54 ↗(On Diff #33132)

Please use list(APPEND) here

69 ↗(On Diff #33132)

Please describe OBJECT_LIBS here.

lib/asan/CMakeLists.txt
124 ↗(On Diff #33132)

ASAN_COMMON_RUNTIME_OBJECT_LIBS

This revision is now accepted and ready to land.Aug 25 2015, 4:54 PM
This revision was automatically updated to reflect the committed changes.