Skip to content

Commit

Permalink
default to using sysroot + stdlibc++
Browse files Browse the repository at this point in the history
  • Loading branch information
RReichert committed Jan 14, 2024
1 parent d10814e commit cb7f525
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions cc/toolchains/llvm/x86_64-linux/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ filegroup(
":wrappers",
"@x86_64-linux-llvm//:ar",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -38,8 +37,7 @@ filegroup(
":wrappers",
"@x86_64-linux-llvm//:as",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -50,8 +48,7 @@ filegroup(
"@x86_64-linux-llvm//:clang",
"@x86_64-linux-llvm//:include",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -61,8 +58,7 @@ filegroup(
":wrappers",
"@x86_64-linux-llvm//:dwp",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -75,8 +71,7 @@ filegroup(
"@x86_64-linux-llvm//:ld",
"@x86_64-linux-llvm//:lib",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -86,8 +81,7 @@ filegroup(
":wrappers",
"@x86_64-linux-llvm//:objcopy",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -106,8 +100,7 @@ filegroup(
":compiler_files",
"@x86_64-linux-llvm//:bin",
] + select({
"//cc:_enable_sysroot": ["@x86_64-sysroot"],
"//conditions:default": [],
"//conditions:default": ["@x86_64-sysroot"],
}),
)

Expand All @@ -116,17 +109,11 @@ cc_toolchain_config(
abi_libc_version = "glibc_unknown",
abi_version = "clang",
builtin_sysroot = select({
"//cc:_enable_sysroot": "external/x86_64-sysroot",
"//conditions:default": None,
"//conditions:default": "external/x86_64-sysroot",
}),
compiler = "clang",
cxx_builtin_include_directories = select({
"//cc:_enable_sysroot": ["%sysroot%/usr/include"],
"//conditions:default": [
"/include",
"/usr/include",
"/usr/local/include",
],
"//conditions:default": ["%sysroot%/usr/include"],
}),
host_system_name = X86_64_LINUX,
target_cpu = "k8",
Expand Down

0 comments on commit cb7f525

Please sign in to comment.