mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-20 13:24:21 -05:00
enable sized deallocation for sized deletion test
Clang doesn't currently enable sized deallocation by default like GCC.
This commit is contained in:
parent
9142a9376b
commit
de7a3b6e5a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user