mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
sizedDealloc
This commit is contained in:
parent
4002d47ef6
commit
ea8b2563bd
2 changed files with 11 additions and 5 deletions
|
@ -554,7 +554,11 @@ config("compiler") {
|
|||
|
||||
# TODO(crbug.com/345541122): investigate the fuchsia binary size increase.
|
||||
if (is_win) {
|
||||
cflags += [ "/Zc:sizedDealloc" ]
|
||||
if (is_debug) {
|
||||
cflags += [ "/Zc:sizedDealloc-" ]
|
||||
} else {
|
||||
cflags += [ "/Zc:sizedDealloc" ]
|
||||
}
|
||||
} else {
|
||||
cflags += [ "-fsized-deallocation" ]
|
||||
}
|
||||
|
|
|
@ -84,10 +84,12 @@ config("compiler") {
|
|||
cflags_c = [ "/TC" ]
|
||||
cflags_cc = [ "/TP" ]
|
||||
|
||||
cflags += [
|
||||
# Work around crbug.com/526851, bug in VS 2015 RTM compiler.
|
||||
# "/Zc:sizedDealloc-",
|
||||
]
|
||||
if (is_debug) {
|
||||
cflags += [
|
||||
# Work around crbug.com/526851, bug in VS 2015 RTM compiler.
|
||||
"/Zc:sizedDealloc-",
|
||||
]
|
||||
}
|
||||
|
||||
if (is_clang) {
|
||||
# Required to make the 19041 SDK compatible with clang-cl.
|
||||
|
|
Loading…
Reference in a new issue