aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2022-12-08 18:17:54 -0800
committerDavid Tolnay <dtolnay@gmail.com>2022-12-08 18:17:54 -0800
commit665d913e1213e9e63295be708f7573f038c6648f (patch)
treeb7fec64d7a905a651b69acf99ec6527845549bfa
parent22d0c8e3050a7548239416831c4bb635be965e6f (diff)
downloadcxx-665d913e1213e9e63295be708f7573f038c6648f.tar.gz
Sort attributes of CxxToolchainInfo
-rw-r--r--tools/buck/toolchains/toolchain.bzl38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/buck/toolchains/toolchain.bzl b/tools/buck/toolchains/toolchain.bzl
index 681b1b6f..5cdefc43 100644
--- a/tools/buck/toolchains/toolchain.bzl
+++ b/tools/buck/toolchains/toolchain.bzl
@@ -21,35 +21,35 @@ def _cxx_toolchain(ctx):
return [
DefaultInfo(),
CxxToolchainInfo(
- mk_comp_db = ctx.attrs.make_comp_db,
- linker_info = LinkerInfo(
- linker = RunInfo(args = ["g++"]),
- linker_flags = ["-lstdc++"],
- archiver = RunInfo(args = ["ar", "rcs"]),
- type = "gnu",
- link_binaries_locally = True,
- archive_objects_locally = True,
- use_archiver_flags = False,
- mk_shlib_intf = ctx.attrs.make_shlib_intf,
- link_style = LinkStyle(ctx.attrs.link_style),
- link_weight = 1,
- binary_extension = "",
- object_file_extension = "o",
- shared_library_name_format = "lib{}.so",
- shared_library_versioned_name_format = "lib{}.so.{}",
- static_library_extension = "a",
- ),
binary_utilities_info = BinaryUtilitiesInfo(
nm = RunInfo(args = ["nm"]),
ranlib = RunInfo(args = ["raninfo"]),
strip = RunInfo(args = ["strip"]),
),
+ c_compiler_info = CCompilerInfo(),
cxx_compiler_info = CxxCompilerInfo(
compiler = RunInfo(args = ["clang++"]),
compiler_type = "clang",
),
- c_compiler_info = CCompilerInfo(),
header_mode = HeaderMode("symlink_tree_only"),
+ linker_info = LinkerInfo(
+ archive_objects_locally = True,
+ archiver = RunInfo(args = ["ar", "rcs"]),
+ binary_extension = "",
+ link_binaries_locally = True,
+ link_style = LinkStyle(ctx.attrs.link_style),
+ link_weight = 1,
+ linker = RunInfo(args = ["g++"]),
+ linker_flags = ["-lstdc++"],
+ mk_shlib_intf = ctx.attrs.make_shlib_intf,
+ object_file_extension = "o",
+ shared_library_name_format = "lib{}.so",
+ shared_library_versioned_name_format = "lib{}.so.{}",
+ static_library_extension = "a",
+ type = "gnu",
+ use_archiver_flags = False,
+ ),
+ mk_comp_db = ctx.attrs.make_comp_db,
),
CxxPlatformInfo(name = "x86_64"),
]