Initial commit I guess

This commit is contained in:
John Doty 2025-01-11 10:08:07 -08:00
commit 9a070a5f8f
7 changed files with 91 additions and 0 deletions

25
toolchains/tools.bzl Normal file
View file

@ -0,0 +1,25 @@
load("@prelude//cxx:cxx_toolchain_types.bzl", "LinkerType")
load("@prelude//toolchains:cxx.bzl", "CxxToolsInfo")
def _path_gcc_tools_impl(_ctx) -> list[Provider]:
return [
DefaultInfo(),
CxxToolsInfo(
compiler = "gcc",
compiler_type = "gcc",
cxx_compiler = "g++",
asm_compiler = "gcc",
asm_compiler_type = "gcc",
rc_compiler = None,
cvtres_compiler = None,
archiver = "ar",
archiver_type = "gnu",
linker = "g++",
linker_type = LinkerType("gnu"),
),
]
path_gcc_tools = rule(
impl = _path_gcc_tools_impl,
attrs = {},
)