mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-03-12 10:00:23 +01:00
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:
parent
713297ee04
commit
f2206b8dbc
10
BUILD.gn
10
BUILD.gn
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user