mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
build.gn fixes for windows
This commit is contained in:
parent
6553400ff4
commit
63b572ba02
9 changed files with 60 additions and 4 deletions
|
@ -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" ]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue