This is an archive of the discontinued LLVM Phabricator instance.

installation: Accept separate install prefix for LLDB.framework
AbandonedPublic

Authored by vsk on Jan 6 2020, 9:47 AM.

Details

Summary

To support multi-arch (fat) builds of swift-lldb, the build script sets
up separate per-arch install directories, runs each arch-specific build,
and then lipo's together the contents.

Split up LLDB_FRAMEWORK_INSTALL_DIR into a prefix (this can be supplied
by the build script) and the final install location. The concatenated
path is called LLDB_FRAMEWORK_INSTALL_PATH.

The idea is to have the build script supply the prefix used for the lipo step,
and for lldb's cmake caches to specify the right install dir for a given target.

Diff Detail

Event Timeline

vsk created this revision.Jan 6 2020, 9:47 AM
vsk planned changes to this revision.Jan 6 2020, 9:57 AM

Hm, the new framework install prefix seems redundant with CMAKE_INSTALL_PREFIX. Let me see if they can be shared.

vsk updated this revision to Diff 236402.Jan 6 2020, 10:04 AM

It looks like a framework-specific install prefix is required, as the install prefix for the framework is not always the same as the install prefix for the rest of the project.

vsk abandoned this revision.Jan 6 2020, 11:31 AM

This is still not right. build-script does not include the arch-specific destdir in the install prefix to begin with.