1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-09-02 16:21:15 +03:00
Files
proxygen/build/fbcode_builder/specs/folly.py
Wez Furlong 14f8ff9173 cmake in a _build subdir to fix macos build
Summary:
This addresses a hilarious but hard to trace build problem on
macOS.  The issue is that the build manages to resolve `folly/String.h`
in place of `string.h` and breaks compilation of `<cstring>` and all
that include it.

The resolution is to ensure that we generate a subdir for the cmake
build.

Reviewed By: simpkins

Differential Revision: D10520960

fbshipit-source-id: 9bebeda69c6e28ebca146f9b96ee01bedd2d6ef1
2018-10-23 18:57:22 -07:00

20 lines
707 B
Python

#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
def fbcode_builder_spec(builder):
return {
'steps': [
# on macOS the filesystem is typically case insensitive.
# We need to ensure that the CWD is not the folly source
# dir when we build, otherwise the system will decide
# that `folly/String.h` is the file it wants when including
# `string.h` and the build will fail.
builder.github_project_workdir('facebook/folly', '_build'),
builder.cmake_install('facebook/folly'),
],
}