From de7a3b6e5a6b2f2779809f82591f43bc647c9ea0 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 1 Jan 2022 23:18:52 -0500 Subject: [PATCH] enable sized deallocation for sized deletion test Clang doesn't currently enable sized deallocation by default like GCC. --- test/simple-memory-corruption/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/simple-memory-corruption/Makefile b/test/simple-memory-corruption/Makefile index 2135f7e..7c4fd06 100644 --- a/test/simple-memory-corruption/Makefile +++ b/test/simple-memory-corruption/Makefile @@ -1,6 +1,8 @@ dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) CONFIG_SLAB_CANARY := true +# Clang 13 still doesn't enable sized deallocation by default +CXXFLAGS := -std=c++17 -fsized-deallocation ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false)) $(error CONFIG_SLAB_CANARY must be true or false)