mirror of
https://github.com/facebook/proxygen.git
synced 2025-09-02 16:21:15 +03:00
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
20 lines
707 B
Python
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'),
|
|
],
|
|
}
|