diff options
Diffstat (limited to 'toolchains/BUILD.bazel')
-rw-r--r-- | toolchains/BUILD.bazel | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/toolchains/BUILD.bazel b/toolchains/BUILD.bazel new file mode 100644 index 0000000..d46f812 --- /dev/null +++ b/toolchains/BUILD.bazel @@ -0,0 +1,34 @@ +load(":i386_elf_gcc.bzl", "cc_toolchain_config") + +package(default_visibility = ["//visibility:public"]) + +filegroup(name = "empty") + +cc_toolchain_config(name = "i386_elf_gcc_toolchain_config") + +cc_toolchain( + name = "i386_elf_gcc_toolchain", + all_files = ":empty", + compiler_files = ":empty", + dwp_files = ":empty", + linker_files = ":empty", + objcopy_files = ":empty", + strip_files = ":empty", + supports_param_files = 0, + toolchain_config = ":i386_elf_gcc_toolchain_config", + toolchain_identifier = "none_i386-toolchain", +) + +toolchain( + name = "i386_elf_gcc", + exec_compatible_with = [ + "@platforms//cpu:x86_64", + "@platforms//os:linux", + ], + target_compatible_with = [ + "@platforms//cpu:i386", + "@platforms//os:none", + ], + toolchain = ":i386_elf_gcc_toolchain", + toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", +) |