diff options
author | aqua <aqua@iserlohn-fortress.net> | 2024-03-08 17:24:49 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2024-03-08 22:00:07 +0200 |
commit | 20b97ea7c0dbbdc13800e12ff5c86c00c4a342ec (patch) | |
tree | 473281e5fc8b256827ce1a678573444e1aa5f669 /toolchains/BUILD.bazel | |
parent | Generate src/conf.h (diff) | |
download | kernel-20b97ea7c0dbbdc13800e12ff5c86c00c4a342ec.tar.xz |
Bazel build
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", +) |