Initial commit I guess
This commit is contained in:
commit
9a070a5f8f
7 changed files with 91 additions and 0 deletions
20
toolchains/BUCK
Normal file
20
toolchains/BUCK
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain")
|
||||
load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain")
|
||||
|
||||
# Ugh.
|
||||
system_cxx_toolchain(
|
||||
name = "cxx",
|
||||
visibility = ["PUBLIC"],
|
||||
|
||||
compiler = "gcc",
|
||||
compiler_type = "gcc",
|
||||
cxx_compiler = "g++",
|
||||
rc_compiler = None,
|
||||
cvtres_compiler = None,
|
||||
linker = "g++",
|
||||
)
|
||||
|
||||
system_python_bootstrap_toolchain(
|
||||
name = "python_bootstrap",
|
||||
visibility = ["PUBLIC"],
|
||||
)
|
||||
25
toolchains/tools.bzl
Normal file
25
toolchains/tools.bzl
Normal 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 = {},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue