facebook / facebook/folly

Building with Buck2

Open
#2,247 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

As per the title, is it possible to build Folly with Buck2?

There are lots of `BUCK` files in the repository, and they seem up-to-date, so I would assume it's possible to do so. However, whenever I try I stumble upon errors such as:
```
$ buck2 targets //...
File changed: root//.git/index.lock
Error parsing root//folly/settings/test
Error evaluating build file: `root//folly/settings/test:BUCK`

Caused by:
error: Variable `cpp_library` not found, did you mean `cxx_library`?
--> folly/settings/test/BUCK:32:1
|
32 | cpp_library(
| ^^^^^^^^^^^
|

Failed to parse 1 package
```

I'm especially interested in this as a big portion of the benchmarks seem to be enabled only through Buck2 (please correct me if I'm wrong!).

Any help is greatly appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.