1load("@prelude//platforms:defs.bzl", "execution_platform") 2load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain") 3load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain") 4load("@prelude//toolchains:go.bzl", "system_go_toolchain") 5load("@prelude//toolchains:haskell.bzl", "system_haskell_toolchain") 6load("@prelude//toolchains:ocaml.bzl", "system_ocaml_toolchain") 7load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain", "system_python_toolchain") 8load("@prelude//toolchains:remote_test_execution.bzl", "remote_test_execution_toolchain") 9load("@prelude//toolchains:rust.bzl", "system_rust_toolchain") 10 11oncall("executorch") 12 13system_cxx_toolchain( 14 name = "cxx", 15 cxx_flags = ["-std=c++20"], 16 visibility = ["PUBLIC"], 17) 18 19system_genrule_toolchain( 20 name = "genrule", 21 visibility = ["PUBLIC"], 22) 23 24system_go_toolchain( 25 name = "go", 26 visibility = ["PUBLIC"], 27) 28 29system_haskell_toolchain( 30 name = "haskell", 31 visibility = ["PUBLIC"], 32) 33 34system_ocaml_toolchain( 35 name = "ocaml", 36 visibility = ["PUBLIC"], 37) 38 39system_python_toolchain( 40 name = "python", 41 visibility = ["PUBLIC"], 42) 43 44system_python_bootstrap_toolchain( 45 name = "python_bootstrap", 46 visibility = ["PUBLIC"], 47) 48 49system_rust_toolchain( 50 name = "rust", 51 default_edition = "2021", 52 visibility = ["PUBLIC"], 53) 54 55remote_test_execution_toolchain( 56 name = "remote_test_execution", 57 visibility = ["PUBLIC"], 58) 59 60execution_platform( 61 name = "android-arm64", 62 cpu_configuration = "prelude//cpu:arm64", 63 os_configuration = "prelude//os:android", 64 # REVIEW: not sure if this is correct 65 use_windows_path_separators = host_info().os.is_windows, 66 visibility = ["PUBLIC"], 67) 68 69execution_platform( 70 name = "android-x86_64", 71 cpu_configuration = "prelude//cpu:x86_64", 72 os_configuration = "prelude//os:android", 73 # REVIEW: not sure if this is correct 74 use_windows_path_separators = host_info().os.is_windows, 75 visibility = ["PUBLIC"], 76) 77