Add generic build options system to typechecker
commit45d48ec1c8f7aae141cbc7ce3323ad43a05975a0
authorFred Emmott <fe@fb.com>
Tue, 13 Feb 2018 23:06:24 +0000 (13 15:06 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 13 Feb 2018 23:34:10 +0000 (13 15:34 -0800)
tree220c0025d7e65773053dca40fb35d591c8f65836
parentd996b2b399c9ce7f78b67115abb788efca889a25
Add generic build options system to typechecker

Summary:
Some currently-hardcoded paths are system-specific.

I can't just specify them in /etc/hh.conf as that path is itself system-specific - e.g. requires system integrity protection overrides on MacOS.

Once we use OPAM in open source builds, it could be replaced with ppx.

If we end up generating the FB side too, we could use this to replace the generated C code for things like build ID and versions.

Original goal of this change was for hh_server to be able to use hackfmt out of the box on open source builds.

Closes https://github.com/facebook/hhvm/pull/8120

Reviewed By: paulbiss

Differential Revision: D6929146

Pulled By: fredemmott

fbshipit-source-id: 78a54cde1f5c99566005624d70e55b95f928ff99
.gitignore
hphp/hack/CMakeLists.txt
hphp/hack/src/options/buildOptions.ml.in [new file with mode: 0644]
hphp/hack/src/options/buildOptions.mli [new file with mode: 0644]
hphp/hack/src/server/serverFormat.ml
hphp/hack/src/server/serverLocalConfig.ml