enable sized deallocation for sized deletion test

Clang doesn't currently enable sized deallocation by default like GCC.
pull/176/head
Daniel Micay 2022-01-01 23:18:52 -05:00
parent 9142a9376b
commit de7a3b6e5a
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) dir=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
CONFIG_SLAB_CANARY := true 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)) ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
$(error CONFIG_SLAB_CANARY must be true or false) $(error CONFIG_SLAB_CANARY must be true or false)