|
| 1 | +load(":rules.bzl", "buildifier") |
| 2 | + |
| 3 | +buildifier( |
| 4 | + name = "buildifier", |
| 5 | + visibility = ["//visibility:public"], |
| 6 | +) |
| 7 | + |
| 8 | +toolchain_type( |
| 9 | + name = "toolchain_type", |
| 10 | + visibility = ["//visibility:public"], |
| 11 | +) |
| 12 | + |
| 13 | +toolchain( |
| 14 | + name = "macos_arm64_toolchain", |
| 15 | + exec_compatible_with = [ |
| 16 | + "@platforms//cpu:aarch64", |
| 17 | + "@platforms//os:macos", |
| 18 | + ], |
| 19 | + target_compatible_with = [ |
| 20 | + "@platforms//cpu:aarch64", |
| 21 | + "@platforms//os:macos", |
| 22 | + ], |
| 23 | + toolchain = "//buildifier/default:darwin_arm64", |
| 24 | + toolchain_type = ":toolchain_type", |
| 25 | +) |
| 26 | + |
| 27 | +toolchain( |
| 28 | + name = "macos_amd64_toolchain", |
| 29 | + exec_compatible_with = [ |
| 30 | + "@platforms//cpu:x86_64", |
| 31 | + "@platforms//os:macos", |
| 32 | + ], |
| 33 | + target_compatible_with = [ |
| 34 | + "@platforms//cpu:x86_64", |
| 35 | + "@platforms//os:macos", |
| 36 | + ], |
| 37 | + toolchain = "//buildifier/default:darwin_amd64", |
| 38 | + toolchain_type = ":toolchain_type", |
| 39 | +) |
| 40 | + |
| 41 | +toolchain( |
| 42 | + name = "linux_arm64_toolchain", |
| 43 | + exec_compatible_with = [ |
| 44 | + "@platforms//cpu:aarch64", |
| 45 | + "@platforms//os:linux", |
| 46 | + ], |
| 47 | + target_compatible_with = [ |
| 48 | + "@platforms//cpu:aarch64", |
| 49 | + "@platforms//os:linux", |
| 50 | + ], |
| 51 | + toolchain = "//buildifier/default:linux_arm64", |
| 52 | + toolchain_type = ":toolchain_type", |
| 53 | +) |
| 54 | + |
| 55 | +toolchain( |
| 56 | + name = "linux_amd64_toolchain", |
| 57 | + exec_compatible_with = [ |
| 58 | + "@platforms//cpu:x86_64", |
| 59 | + "@platforms//os:linux", |
| 60 | + ], |
| 61 | + target_compatible_with = [ |
| 62 | + "@platforms//cpu:x86_64", |
| 63 | + "@platforms//os:linux", |
| 64 | + ], |
| 65 | + toolchain = "//buildifier/default:linux_amd64", |
| 66 | + toolchain_type = ":toolchain_type", |
| 67 | +) |
| 68 | + |
| 69 | +toolchain( |
| 70 | + name = "windows_amd64_toolchain", |
| 71 | + exec_compatible_with = [ |
| 72 | + "@platforms//cpu:x86_64", |
| 73 | + "@platforms//os:windows", |
| 74 | + ], |
| 75 | + target_compatible_with = [ |
| 76 | + "@platforms//cpu:x86_64", |
| 77 | + "@platforms//os:windows", |
| 78 | + ], |
| 79 | + toolchain = "//buildifier/default:windows_amd64", |
| 80 | + toolchain_type = ":toolchain_type", |
| 81 | +) |
| 82 | + |
| 83 | +toolchain( |
| 84 | + name = "src_toolchain", |
| 85 | + toolchain = "//buildifier/default:src", |
| 86 | + toolchain_type = ":toolchain_type", |
| 87 | +) |
0 commit comments