This is an archive of the discontinued LLVM Phabricator instance.

Fix issues building libraries as more than one type with Xcode
ClosedPublic

Authored by beanz on Jul 7 2019, 2:17 PM.

Details

Summary

CMake+Xcode doesn't seem to handle targets that only have object
sources. This patch works around that limitation by adding a dummy
soruce file to any library target that is generated by llvm_add_library
when object libraries are generated.

Object libraries are generated whenever llvm_add_library is passed more
than one library type, which is now the default case for clang static
libraries (which generate STATIC and OBJECT libraries).

Diff Detail

Repository
rL LLVM

Event Timeline

beanz created this revision.Jul 7 2019, 2:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2019, 2:17 PM
Herald added a subscriber: mgorny. · View Herald Transcript
xbolva00 added inline comments.
llvm/CMakeLists.txt
45 ↗(On Diff #208301)

Typo

joanlluch accepted this revision.Jul 8 2019, 10:51 AM

This fixed bug 42528. okey to me.

This revision is now accepted and ready to land.Jul 8 2019, 10:51 AM
This revision was automatically updated to reflect the committed changes.