This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Handle iOS, watchOS and tvOS when finding compiler-rt on Apple
ClosedPublic

Authored by ldionne on Mar 21 2022, 10:45 AM.

Details

Summary

This patch uses CMAKE_OSX_SYSROOT, which should contain the SDK path
that we're building against on Apple platforms, to determine which
platform we are compiling for and set the compiler-rt suffix accordingly.

Diff Detail

Event Timeline

ldionne created this revision.Mar 21 2022, 10:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 10:45 AM
ldionne requested review of this revision.Mar 21 2022, 10:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 10:45 AM
ldionne updated this revision to Diff 417029.Mar 21 2022, 10:52 AM

Rebase onto main to poke CI.

ldionne updated this revision to Diff 417070.Mar 21 2022, 1:18 PM

Handle simulators while we're at it.

phosek accepted this revision.Mar 21 2022, 2:20 PM

LGTM

This revision is now accepted and ready to land.Mar 21 2022, 2:20 PM
This revision was landed with ongoing or failed builds.Mar 21 2022, 6:55 PM
This revision was automatically updated to reflect the committed changes.