- 20 Sep, 2019 4 commits
-
-
Zeyi (Rice) Fan authored
Reviewed By: simpkins Differential Revision: D17403339 fbshipit-source-id: 2a6b2eb073d54e080f6a313948afd2815f58bba9
-
Alex Guzman authored
Summary: Fixes a warning about ambiguity between & and == Reviewed By: knekritz Differential Revision: D17500996 fbshipit-source-id: 9a3d1da499bf25aff3d97bc3ea40bf5a1d19257d
-
Alex Guzman authored
Summary: These two functions are currently not correctly implemented when compared to the documented behavior. 1. These functions aren't guaranteed to return correct information until you've called X509_check_purpose on the certificate. Before then, these flag fields are uninitialized. 2. X509_get_key_usage should return UINT32_MAX when the key usage flag isn't present. This fixes both of these issues Reviewed By: yfeldblum Differential Revision: D15767405 fbshipit-source-id: 013bc4c2f694ba7cbd7395626418a0d423d6c1c7
-
Alex Guzman authored
Summary: As it says on tin. Reviewed By: yfeldblum Differential Revision: D15409159 fbshipit-source-id: a99b17b54e0c36d79956213655385d234190ff52
-
- 19 Sep, 2019 7 commits
-
-
Zeyi (Rice) Fan authored
Summary: Throws an exception when: * The name specified in the manifest mismatches the filename * Duplicated manifest -- with the sub-directory support it is now able to have multiple manifest files with the same name Reviewed By: chadaustin Differential Revision: D17438460 fbshipit-source-id: ac7ad0b701beb15f0e91bb05cd1ec8fe378ad5b6
-
Zeyi (Rice) Fan authored
Summary: Make getdeps to look for subdirectories for manifest files. Reviewed By: simpkins Differential Revision: D17222388 fbshipit-source-id: e13503beccd9edf6d80f78fbc3238b2a8d2053dd
-
Adam Simpkins authored
Summary: The libraries in thrift/lib/py support both Python 2 and Python 3, and rely on the Python six module for some of this compatibility support. Update the getdeps manifest for fbthrift to indicate this dependency, and update fbthrift's CMakeLists.txt file to find and reference python-six properly. This will ensure that the python-six code is built into any python executable that uses the thrift/lib/py libraries. Reviewed By: yfeldblum Differential Revision: D17401218 fbshipit-source-id: 0007dda8974ae9bd87e4d7e256c74908c9a30d8f
-
Adam Simpkins authored
Summary: Add a new builder that can extract Python wheel files, and re-package them for consumption by our add_fb_python_library() and add_fb_python_executable() CMake functions. This is useful for dependencies on packages from PyPI. At the moment this code only handles architecture-independent pure-Python packages. It shouldn't be too hard to extend this to handle more complex wheels, but for now I only need to use it for some pure-Python wheels and so I haven't tested with more complex wheel files. This also includes two new manifests for python-six and python-toml that take use this new builder. Reviewed By: wez Differential Revision: D17401216 fbshipit-source-id: d6f74565887c3f004e1c06503dc9ec81599dd697
-
Yedidya Feldblum authored
Summary: Support `-Werror=unused-function`. Reviewed By: Orvid, guangyfb Differential Revision: D17252831 fbshipit-source-id: ccf3829ebaa6992341ff5b1ab84c173922eeae03
-
Adam Simpkins authored
Summary: Update the code to use `os.replace()` rather than `os.rename()` so that it won't fail on Windows if the destination path already exists. Reviewed By: chadaustin Differential Revision: D17462716 fbshipit-source-id: cbc06319ccb2d73868f80ab1874890ebec5a621b
-
Maged Michael authored
Summary: Adds a microbenchmark for the lifetime of an unused tagged hazptr_obj_batch in the presence of unrelated objects in the domain's tagged list. This diff also makes the calculation of the number of operations and the scalability measure for the cleanup microbenchmark more consistent with those for the other microbenchmarks. Reviewed By: davidtgoldblatt Differential Revision: D17416088 fbshipit-source-id: b59fd1b48114d591da5d9432df7910d940683006
-
- 18 Sep, 2019 7 commits
-
-
Udip Pant authored
Summary: This enable test targets to be built and ran Reviewed By: lnicco Differential Revision: D17408942 fbshipit-source-id: 144d223bc3830d07a0420e9569d3166a8646cd9a
-
Udip Pant authored
Summary: changes the way it pulls its dependencies Reviewed By: wez Differential Revision: D17363235 fbshipit-source-id: 37e509c7e413f763e3553e9f01ac23951045089c
-
Udip Pant authored
Summary: Dependencies include libbpf and libelf Reviewed By: wez Differential Revision: D17363237 fbshipit-source-id: 4408f2fbabbbde170b57779422038b32e52c6f51
-
Udip Pant authored
Summary: This enables appending PKG_CONFIG_PATH to env variable Reviewed By: wez Differential Revision: D17363236 fbshipit-source-id: 18c6d7a97ba83edf085278bccaafa80821ea8860
-
Wez Furlong authored
Summary: This commit configures CI for Windows, macOS and Linux using the new GitHub Actions CI service. The configuration was generated via: ``` build/fbcode_builder/getdeps.py generate-github-actions --output-file .github/workflows/main.yml folly ``` Pull Request resolved: https://github.com/facebook/folly/pull/1228 Reviewed By: yfeldblum Differential Revision: D17454557 Pulled By: wez fbshipit-source-id: a99261ee312d4093031cf6fad5832eacb1be1d97
-
Yedidya Feldblum authored
Summary: [Folly] Cut no-op same-type casts in `Function` benchmark. Reviewed By: LeeHowes Differential Revision: D17432433 fbshipit-source-id: 6c2e53fc742aa590f7332efa146af41592274cc9
-
Amol Bhave authored
Summary: Original commit changeset: e28b4cb055b3 Reviewed By: yfeldblum Differential Revision: D17429976 fbshipit-source-id: e2f6f59c22854f1b2fd25913ad779f4edc83f8ee
-
- 17 Sep, 2019 6 commits
-
-
Amol Bhave authored
Summary: create a unorderedReduceSemiFuture method that returns a SemiFuture instead of just a Future. Reviewed By: LeeHowes Differential Revision: D16946582 fbshipit-source-id: e28b4cb055b3a9c67adebb373c60a775f7005762
-
Adam Simpkins authored
Summary: Update the thrift C++ and Python CMake rules to indicate that the output also depends on the thrift compiler itself. Previously the C++ rule indicated that the output depended on the thrift template files, which caught most cases when the thrift compiler was updated, but wasn't fully correct. The thrift templates were also removed and baked into the thrift compiler binary in D16356056. Reviewed By: yfeldblum, chadaustin Differential Revision: D17401217 fbshipit-source-id: ae5cde7a7e5e07a74406a1b6f4469124187bc12f
-
Adam Simpkins authored
Summary: This is useful when working on changes to some of the builder functions, to skip ever trying to use cached results. Reviewed By: chadaustin Differential Revision: D17401219 fbshipit-source-id: fb7d5ea45618653957b9bd6a62eed91d8334824d
-
Rosen Penev authored
Summary: Changes libfolly.pc to a more standard format. Allows overriding of the variables by pkgconfig. Signed-off-by: Rosen Penev <rosenp@gmail.com> I'm not sure of anything that uses pkgconfig to find libfolly but might as well fix it. Pull Request resolved: https://github.com/facebook/folly/pull/1226 Reviewed By: simpkins Differential Revision: D17415620 Pulled By: yfeldblum fbshipit-source-id: d015c3e83783b1c5e9ac48a64ad35c0c07120dbd
-
Wez Furlong authored
Summary: This commit teaches fixup-dyn-deps how to generate correct absolute paths in the context of the ultimate install path (specified via the `--final-install-prefix` option) Absolute paths are desirable if you have, for example, an executable that you wish to install with the setuid bit set. Reviewed By: simpkins Differential Revision: D17361491 fbshipit-source-id: 4c4f3f15208266300622f84dc9cd1ba83883dfb7
-
Andrew Krieger authored
Summary: Avoids -Wundef on non-Windows builds. folly/system/ThreadId.h had #elif _WIN32 which was changed to #elif defined(_WIN32) Reviewed By: Orvid Differential Revision: D17399760 fbshipit-source-id: 76583374c33d5d59e7c64b9a7a05c660a817bb92
-
- 16 Sep, 2019 8 commits
-
-
Chad Austin authored
Summary: Add a license header to satisfy the open source linter. Use the same header the other .cmake files have. Reviewed By: mhlakhani Differential Revision: D17404782 fbshipit-source-id: 66679d72c9e680f8bb8b27869e981a046b3520cf
-
Wez Furlong authored
Summary: This commit adds a getdeps command that is able to generate a workflow file for the GitHub Actions CI environment. The workflow file could be expressed more simply using the matrix syntax and with three steps (checkout, build, test), but I chose to break out the steps for each of the dependencies because the UX while waiting on the build is much nicer that way: the steps show during and live log tailing for the section of the build that is underway. If they were all lumped into a single build step then the logs from the boost section of the build dominate and make the github UI work very hard. Pull Request resolved: https://github.com/facebook/watchman/pull/743 Test Plan: https://github.com/facebook/watchman/pull/743 successfully executes the github actions CI flow. ``` $ opensource/fbcode_builder/getdeps.py generate-github-actions --output-file watchman/.github/workflows/main.yml watchman ``` Reviewed By: simpkins Differential Revision: D17384915 Pulled By: wez fbshipit-source-id: 9a9e5a3e806c18f6cc38ba1cb7059740cda01ad4
-
Wez Furlong authored
Summary: GitHub Actions CI `windows-latest` environment has only VS 2019 installed, so we need to expand our logic to be able to locate it. Note that Boost 1.69 doesn't know how to locate VS 2019 so we are effectively tied to VS 2017 at the moment; the search order in this diff reflects that. (That means that we can't target `windows-latest` on GitHub Actions, but that is really a concern for a later diff in this stack) Reviewed By: simpkins Differential Revision: D17385052 fbshipit-source-id: 9bb0612154f42d425a625406488f39bb4ec3d8ae
-
Wez Furlong authored
Summary: while testing https://github.com/facebook/watchman/pull/743 I noticed that the cmake builds were picking up the installed mingw GCC compiler rather than the MSVC compiler. That would be fine except that boost is built with MSVC and its generated libraries cannot be subsequently found by a cmake gcc build that uses FindBoost. This commit forces cmake to pick cl.exe rather than gcc. This is probably fine to do unconditionally on windows, but since I've only observed this particular problem with GitHub Actions I'm keeping it constrained to that environment for now. Reviewed By: simpkins Differential Revision: D17385050 fbshipit-source-id: 90bef898b138e5d4bbd28a155ed1bd468acee9de
-
Wez Furlong authored
Summary: We've been squeaking by with assuming that flex is installed already on posix systems, but that isn't the case on the github actions default configuration. Adjust the bison recipe: on windows it deploys both flex and bison. We use the same source for both flex and bison but install flex to a separate install prefix to make it easier to consume the flex dependency distinct from the bison dependency. The latest flex release segfaults during compilation on linux unless we force -DGNU_SOURCE, so the manifest does that on linux. Reviewed By: simpkins Differential Revision: D17385051 fbshipit-source-id: 9f31b07849af9de50099d1b20bedba517bbbdf2f
-
Wez Furlong authored
Summary: while testing https://github.com/facebook/watchman/pull/743 on macOS I noticed that the libevent build failed to find openssl. openssl is special on macos because apple do not ship the headers. We already build and depend on openssl for the folly manifest on macos, so this is really just adding a missing edge. Reviewed By: simpkins Differential Revision: D17385053 fbshipit-source-id: 1b688537fef422d81a959fc5749c871b9e868baa
-
Tom Jackson authored
Summary: Diffing logs would be easier if the lines which pretty-printed JSON were identical if their values were identical, and they're just easier to visually scan for a value if they're sorted anyway. Reviewed By: yfeldblum, luciang Differential Revision: D17367669 fbshipit-source-id: 91188f23576ce39b9edc2307be018a43f30c786d
-
Yedidya Feldblum authored
Summary: [Folly] Use a fixed mempool capacity in `LifoSem`, simplifying usage. Reviewed By: nbronson Differential Revision: D17251982 fbshipit-source-id: e3bce99204daef178418268f1d195365400df885
-
- 13 Sep, 2019 2 commits
-
-
Nanshu Chen authored
Summary: AsyncGeneratorWrapper uses folly::Optional as the return type for "getNext". Now the AsyncGenerator API has changed by adding `next()` method which returns a `NextResult` type, which works like folly::Optional while supporting both values and references, it's best to use `NextResult` for the wrapper as well. Reviewed By: yfeldblum Differential Revision: D16695661 fbshipit-source-id: 84e9d74e8d6b17b93bd3c22e2aaf56c7b9e4b789
-
Hasnain Lakhani authored
Summary: We would like to build a version of proxygen that has minimal dependencies on dynamic libraries. Reviewed By: yfeldblum Differential Revision: D17228181 fbshipit-source-id: cfd61afdfa978c49a536184f426502196241fb8a
-
- 12 Sep, 2019 1 commit
-
-
Matt Ma authored
Summary: broken zinc/test and tao/coordinator/test: in dev/nosan mode. Reviewed By: luciang Differential Revision: D17310046 fbshipit-source-id: 0a98d7cea24438a42932466394e63db4f64591cf
-
- 11 Sep, 2019 4 commits
-
-
Adam Simpkins authored
Summary: On Windows we have to explicitly invoke `make_fbpy_archive.py` with python. Therefore use CMake's built-in `FindPythonInterp` module to find the python executable and use that when invoking `make_fbpy_archive.py` This is slightly complicated by the effort required to find python with older versions of CMake. We ideally still want to support versions of CMake back to at least 3.8, which means we need to still support finding Python with the older `FindPythonInterp.cmake` module Reviewed By: wez Differential Revision: D17128606 fbshipit-source-id: 3f4beff76848b8a362ebdf21198e7a8bf1b0537f
-
Mark Santaniello authored
Summary: The nested EBO classes were missing the allocator-extended c'ctor. Fix and add tests to cover this case. Reviewed By: nbronson Differential Revision: D17284711 fbshipit-source-id: 6e7e8df83712f018fd6a7558513164f319b1b7f8
-
Yedidya Feldblum authored
Summary: [Folly] Cut unused dep on boost `chrono` library from folly and proxygen. Reviewed By: vitaut Differential Revision: D17298687 fbshipit-source-id: 90d0182f4fbb76c13cb341e27514e688f12590a4
-
Yedidya Feldblum authored
Summary: [Folly] Move `hash_128_to_64` to top of file - it has no dependencies so there was no need to split the declaration and definition across 500 lines. Reviewed By: Orvid Differential Revision: D17276906 fbshipit-source-id: f57133e8873d8b1afcfd5ab119e07615f6ee9018
-
- 10 Sep, 2019 1 commit
-
-
Matt Ma authored
Summary: Basic idea is to find the subprogram for a given stack trace address, scan the inlined subroutines of that subprogram recursively for all inline function calls, then find the name and location of these inline function calls. Now only pure inline functions are supported, and class inline functions are not. Class inline functions needs a lookup path "caller->obj->type", then lookup types in .debug_types, which is more complex. The debug info parser idea was stolen from hphp/tools/debug-parser/dwarfstate.h Not sure if we want to add a flag to enable this feature. We can discuss over review. Reviewed By: luciang Differential Revision: D16760775 fbshipit-source-id: 1a7c23486605e7d8837070a697a875789ae41416
-