build.gn fixes for windows

This commit is contained in:
Alexander Frick 2023-04-29 00:09:39 -05:00
parent 6553400ff4
commit 63b572ba02
9 changed files with 60 additions and 4 deletions

View file

@ -615,3 +615,15 @@ config("lean_and_mean") {
config("nominmax") {
defines = [ "NOMINMAX" ]
}
# Some binaries create PDBs larger than 4 GiB. Increasing the PDB page size
# to 8 KiB allows 8 GiB PDBs. The larger page size also allows larger block maps
# which is a PDB limit that was hit in https://crbug.com/1406510. The page size
# can easily be increased in the future to allow even larger PDBs or larger
# block maps.
config("pdb_larger_than_4gb") {
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [ "/pdbpagesize:8192" ]
}

View file

@ -2095,7 +2095,6 @@ if (is_win) {
]
common_optimize_on_ldflags += [
"-mllvm:-freroll-loops",
"-mllvm:-extra-vectorizer-passes",
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",

View file

@ -622,3 +622,15 @@ config("lean_and_mean") {
config("nominmax") {
defines = [ "NOMINMAX" ]
}
# Some binaries create PDBs larger than 4 GiB. Increasing the PDB page size
# to 8 KiB allows 8 GiB PDBs. The larger page size also allows larger block maps
# which is a PDB limit that was hit in https://crbug.com/1406510. The page size
# can easily be increased in the future to allow even larger PDBs or larger
# block maps.
config("pdb_larger_than_4gb") {
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [ "/pdbpagesize:8192" ]
}

View file

@ -2089,7 +2089,6 @@ if (is_win) {
]
common_optimize_on_ldflags += [
"-mllvm:-freroll-loops",
"-mllvm:-extra-vectorizer-passes",
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",

View file

@ -611,3 +611,15 @@ config("lean_and_mean") {
config("nominmax") {
defines = [ "NOMINMAX" ]
}
# Some binaries create PDBs larger than 4 GiB. Increasing the PDB page size
# to 8 KiB allows 8 GiB PDBs. The larger page size also allows larger block maps
# which is a PDB limit that was hit in https://crbug.com/1406510. The page size
# can easily be increased in the future to allow even larger PDBs or larger
# block maps.
config("pdb_larger_than_4gb") {
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [ "/pdbpagesize:8192" ]
}

View file

@ -2089,7 +2089,6 @@ if (is_win) {
]
common_optimize_on_ldflags += [
"-mllvm:-freroll-loops",
"-mllvm:-extra-vectorizer-passes",
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",

View file

@ -612,3 +612,15 @@ config("lean_and_mean") {
config("nominmax") {
defines = [ "NOMINMAX" ]
}
# Some binaries create PDBs larger than 4 GiB. Increasing the PDB page size
# to 8 KiB allows 8 GiB PDBs. The larger page size also allows larger block maps
# which is a PDB limit that was hit in https://crbug.com/1406510. The page size
# can easily be increased in the future to allow even larger PDBs or larger
# block maps.
config("pdb_larger_than_4gb") {
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [ "/pdbpagesize:8192" ]
}

View file

@ -2086,7 +2086,6 @@ if (is_win) {
]
common_optimize_on_ldflags += [
"-mllvm:-freroll-loops",
"-mllvm:-extra-vectorizer-passes",
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",

View file

@ -615,3 +615,15 @@ config("lean_and_mean") {
config("nominmax") {
defines = [ "NOMINMAX" ]
}
# Some binaries create PDBs larger than 4 GiB. Increasing the PDB page size
# to 8 KiB allows 8 GiB PDBs. The larger page size also allows larger block maps
# which is a PDB limit that was hit in https://crbug.com/1406510. The page size
# can easily be increased in the future to allow even larger PDBs or larger
# block maps.
config("pdb_larger_than_4gb") {
if (!defined(ldflags)) {
ldflags = []
}
ldflags += [ "/pdbpagesize:8192" ]
}