DXC build: disable sized allocations
Chromium will enable this flag by default, which results in ASAN
failures for mismatched new/delete calls in DXC. These are not a
security risk, and haven't been fixed in upstream LLVM either, so let's
disable this flag when building DXC. Note that this is already disabled
for MSVC builds as well (both in our GN build, and in DXC's CMake
build).
Bug: chromium:410141973
Change-Id: Ieccfe2fc49ede3f1cea5ac2ebb15b939c869b0a6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/237014
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: James Price <jrprice@google.com>
Auto-Submit: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Mikihito Matsuura <mikt@google.com>
diff --git a/third_party/gn/dxc/BUILD.gn b/third_party/gn/dxc/BUILD.gn
index 28fe3d5..9849d12 100644
--- a/third_party/gn/dxc/BUILD.gn
+++ b/third_party/gn/dxc/BUILD.gn
@@ -545,6 +545,7 @@
"-fcxx-exceptions", # DXC uses exceptions
"-fms-extensions",
"-frtti", # DXC uses RTTI
+ "-fno-sized-deallocation", # Disable sized allocation
]
}