Windows: Enable big PDBs for libcef.dll.pdb in full-symbol builds

This fixes official build linker errors like:

lld-link: error: Output data is larger than 4 GiB. File size 4,341,682,176 too large for current PDB page size 4096
lld-link: error: failed to write PDB file ./libcef.dll.pdb

See https://crbug.com/1245726 for background.
This commit is contained in:
Marshall Greenblatt 2022-08-25 18:48:08 -04:00
parent 713297ee04
commit f2206b8dbc

View File

@ -1582,6 +1582,15 @@ if (is_mac) {
info_plist_target = ":cef_framework_plist"
}
} else {
config("pdb_larger_than_4gb") {
if (is_win && symbol_level == 2) {
# These binaries create PDBs larger than 4 GiB. Increasing the PDB page
# size allows larger PDBs, but not all tools can handle such large PDBs
# yet.
ldflags = [ "/pdbpagesize:8192" ]
}
}
shared_library("libcef") {
# Necessary because the libcef_test_support target is testonly.
testonly = true
@ -1600,6 +1609,7 @@ if (is_mac) {
configs += [
":libcef_autogen_config",
":pdb_larger_than_4gb",
]
if (is_win) {