mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
884a1d5c2f
Summary: In order to speed up build times on a mac, add homebrew support to getdeps. Homebrew packages can be declared in a manifest using the `homebrew` header. Futher, ahornby has added manifest entries for homebrew packages which are included in this diff and also included a change to use the correct version of openssl. Without this openssl change, homebrew cmake configure finds an old openssl 1.0.2 install. This diff provides a 2x speed up for building folly: Timings for clean getdeps folly build on mid-2018 2.9Ghz i9 6 core intel macbook pro with 32GB RAM: With new homebrew system deps: ``` rm -rf /Users/ahornby/.scratch/UsersZahornbyZfbsource/fbcode_builder_getdeps/ time ./opensource/fbcode_builder/getdeps.py build --allow-system-packages folly real 17m39.329s user 76m10.317s sys 5m50.163s ``` Without: ``` rm -rf /Users/ahornby/.scratch/UsersZahornbyZfbsource/fbcode_builder_getdeps/ time ./opensource/fbcode_builder/getdeps.py build folly real 32m10.344s user 105m53.448s sys 15m57.858s ``` Reviewed By: ahornby Differential Revision: D33842632 fbshipit-source-id: ac785d4a8dcfa31b77292bddd9e747022ac36e3b
31 lines
765 B
Plaintext
31 lines
765 B
Plaintext
[manifest]
|
|
name = libgit2
|
|
|
|
[homebrew]
|
|
libgit2
|
|
|
|
[rpms]
|
|
libgit2-devel
|
|
|
|
# Ubuntu 18.04 libgit2 has clash with libcurl4-openssl-dev as it depends on
|
|
# libcurl4-gnutls-dev. Should be ok from 20.04 again
|
|
# There is a description at https://github.com/r-hub/sysreqsdb/issues/77
|
|
# [debs]
|
|
# libgit2-dev
|
|
|
|
[download]
|
|
url = https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz
|
|
sha256 = 0ca11048795b0d6338f2e57717370208c2c97ad66c6d5eac0c97a8827d13936b
|
|
|
|
[build]
|
|
builder = cmake
|
|
subdir = libgit2-0.28.1
|
|
|
|
[cmake.defines]
|
|
# Could turn this on if we also wanted to add a manifest for libssh2
|
|
USE_SSH = OFF
|
|
BUILD_CLAR = OFF
|
|
# Have to build shared to work around annoying problems with cmake
|
|
# mis-parsing the frameworks required to link this on macos :-/
|
|
BUILD_SHARED_LIBS = ON
|