This is an archive of the discontinued LLVM Phabricator instance.

sysroot.py: add support for darwin
ClosedPublic

Authored by thakis on Feb 18 2021, 7:23 AM.

Details

Summary

This is a tiny bit messy because compiler-rt needs different sysroots for
macOS, iOS, etc. We want sysroot.py to create something that is a hermetic
representation of all build deps, so it needs to create a directory that
contains all needed SDKs, and these subdirectories are then passed to
cmake which passes each of these _subdirectories_ as different -isysroot
flags while building the runtime libraries.

Diff Detail

Event Timeline

thakis requested review of this revision.Feb 18 2021, 7:23 AM
thakis created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 7:23 AM
thakis added inline comments.Feb 18 2021, 7:24 AM
llvm/utils/gn/build/BUILD.gn
62

This is moving down next to the other sysroots. It's basically unchanged, except that the conditional grows a || sysroot != "".

hans accepted this revision.Feb 18 2021, 7:44 AM
hans added inline comments.
llvm/utils/sysroot.py
39

s/baes/base/

42

s/comipler/compiler/

This revision is now accepted and ready to land.Feb 18 2021, 7:44 AM
This revision was automatically updated to reflect the committed changes.
thakis marked 2 inline comments as done.