forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
57 lines (49 loc) · 1.64 KB
/
BUCK
File metadata and controls
57 lines (49 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
load("@prelude//platforms:defs.bzl", "execution_platform")
load("@prelude//tests:test_toolchain.bzl", "noop_test_toolchain")
load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain")
load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain")
load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain", "system_python_toolchain")
load("@prelude//toolchains:remote_test_execution.bzl", "remote_test_execution_toolchain")
# Although the non-Android toolchains below are present in shim/BUCK, it appears that we
# have to duplicate them here or builds won't work.
system_cxx_toolchain(
name = "cxx",
cxx_flags = ["-std=c++20"],
visibility = ["PUBLIC"],
)
system_genrule_toolchain(
name = "genrule",
visibility = ["PUBLIC"],
)
system_python_toolchain(
name = "python",
visibility = ["PUBLIC"],
)
system_python_bootstrap_toolchain(
name = "python_bootstrap",
visibility = ["PUBLIC"],
)
execution_platform(
name = "android-arm64",
cpu_configuration = "prelude//cpu:arm64",
os_configuration = "prelude//os:android",
# REVIEW: not sure if this is correct
use_windows_path_separators = host_info().os.is_windows,
visibility = ["PUBLIC"],
)
execution_platform(
name = "android-x86_64",
cpu_configuration = "prelude//cpu:x86_64",
os_configuration = "prelude//os:android",
# REVIEW: not sure if this is correct
use_windows_path_separators = host_info().os.is_windows,
visibility = ["PUBLIC"],
)
noop_test_toolchain(
name = "test",
visibility = ["PUBLIC"],
)
remote_test_execution_toolchain(
name = "remote_test_execution",
visibility = ["PUBLIC"],
)