~smspillaz/folly/folly-git-master

Viewing all changes in revision 6827.

  • Committer: Facebook Github Bot
  • Author(s): Wez Furlong
  • Date: 2019-03-21 22:47:28 UTC
  • Revision ID: git-v1:49a8f35d944367d45ed9d0e3a4a30f7075f58813
fbcode_builder: teach it to build folly on macos

Summary:
This diff expands fbcode_builder so that it can optionally spawn a macos lego job to run a build.

I've pulled in the macOS third party dependencies used by the watchman and eden builds to support this.
Longer term I want to move to a more granular solution for the third party deps.  Medium term we can move the logic for managing these deps to somewhere more central than just the watchman code.

In the linux flavor of fbcode builder, the setup step is responsible for installing system packages, so I've inserted the LFS download of the macOS deps into that stage.

In order for those macOS deps to be picked up without modifying the folly cmake we need to adjust the environment so this diff also inserts that logic at the top of each generated sandcastle step.

A similar technique could potentially be used for windows builds, but note that fbcode_builder makes some assumptions about linux and requires that bash be available.  Cygwin vs. native paths passed through the environment may be a real concern.  That is something for a follow up diff.

Reviewed By: simpkins

Differential Revision: D14514601

fbshipit-source-id: c2882f45aa4b910b5e65ce6b246c750d20ca2948

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: