initialize buck2 (without prelude)

This commit is contained in:
Brian Hicks 2023-04-26 16:10:36 -05:00
parent cf1ed11277
commit 78e347aa29
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
5 changed files with 28 additions and 0 deletions

14
.buckconfig Normal file
View File

@ -0,0 +1,14 @@
[repositories]
root = .
prelude = prelude
toolchains = toolchains
none = none
[repository_aliases]
config = prelude
fbcode = none
fbsource = none
buck = none
[parser]
target_platform_detector_spec = target:root//...->prelude//platforms:default

0
.buckroot Normal file
View File

1
.gitignore vendored
View File

@ -242,3 +242,4 @@ documentation.json
/_build
/log
/buck-out

7
BUCK Normal file
View File

@ -0,0 +1,7 @@
# A list of available rules and their signatures can be found here: https://buck2.build/docs/api/rules/
genrule(
name = "hello_world",
out = "out.txt",
cmd = "echo BUILT BY BUCK2> $OUT",
)

6
toolchains/BUCK Normal file
View File

@ -0,0 +1,6 @@
load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain")
system_genrule_toolchain(
name = "genrule",
visibility = ["PUBLIC"],
)