This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [debugserver] Simplify handling of arch specific files
ClosedPublic

Authored by mstorsjo on Jan 4 2022, 2:04 PM.

Details

Summary

There are no duplicates among the include files, and all the
source files are wrapped in architecture ifdefs, so there's no harm
in including all of them, always.

This fixes builds if TARGET_TRIPLE is set to something else than the
build architecture.

This also allows building for multiple architectures at once by
setting CMAKE_OSX_ARCHITECTURES.

Diff Detail

Event Timeline

mstorsjo created this revision.Jan 4 2022, 2:04 PM
mstorsjo requested review of this revision.Jan 4 2022, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2022, 2:04 PM
JDevlieghere accepted this revision.Jan 5 2022, 9:47 AM

Sounds reasonable, with the ifdefs in place I can't think of any reason this would break. LGTM.

This revision is now accepted and ready to land.Jan 5 2022, 9:47 AM