SERVER-125433: Turn off mold on PPC (#52514)
GitOrigin-RevId: 84e5b165c1b62293ca26b0101c28ebd4bd421f5b
This commit is contained in:
parent
2b318aa181
commit
4f5d149de7
@ -868,6 +868,7 @@ selects.config_setting_group(
|
||||
":_linker_auto",
|
||||
"@platforms//os:linux",
|
||||
":compiler_type_gcc",
|
||||
":not_ppc",
|
||||
],
|
||||
)
|
||||
|
||||
@ -897,10 +898,11 @@ selects.config_setting_group(
|
||||
],
|
||||
)
|
||||
|
||||
# mold is selected explicitly or auto-selected for gcc
|
||||
# mold is selected explicitly or auto-selected for gcc (except on ppc)
|
||||
# This is because gcc needs dwarf64, and only mold supports
|
||||
# linking both 32 and 64 bit debug symbols which we have
|
||||
# due to the rust toolchain.
|
||||
# due to the rust toolchain. ppc is excluded from auto-selection
|
||||
# and falls back to the toolchain's default linker.
|
||||
selects.config_setting_group(
|
||||
name = "_linker_mold_or_gcc_auto",
|
||||
match_any = [
|
||||
@ -918,13 +920,31 @@ selects.config_setting_group(
|
||||
)
|
||||
|
||||
selects.config_setting_group(
|
||||
name = "linker_default",
|
||||
name = "_linker_auto_not_linux",
|
||||
match_all = [
|
||||
":_linker_auto",
|
||||
":not_linux",
|
||||
],
|
||||
)
|
||||
|
||||
selects.config_setting_group(
|
||||
name = "_linker_auto_gcc_ppc",
|
||||
match_all = [
|
||||
":_linker_auto",
|
||||
"@platforms//os:linux",
|
||||
":compiler_type_gcc",
|
||||
"@platforms//cpu:ppc64le",
|
||||
],
|
||||
)
|
||||
|
||||
selects.config_setting_group(
|
||||
name = "linker_default",
|
||||
match_any = [
|
||||
":_linker_auto_not_linux",
|
||||
":_linker_auto_gcc_ppc",
|
||||
],
|
||||
)
|
||||
|
||||
# --------------------------------------
|
||||
# libunwind options
|
||||
# --------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user