omni/toolchains/tools.bzl
2025-01-11 10:08:07 -08:00

25 lines
691 B
Python

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 = {},
)