sizedDealloc

This commit is contained in:
Alexander Frick 2024-11-30 05:46:52 -06:00
parent 4002d47ef6
commit ea8b2563bd
2 changed files with 11 additions and 5 deletions

View file

@ -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" ]
}

View file

@ -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.