From 98bd75778736d4322db5ee7ecf5c548133e05d0f Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 10 Feb 2020 10:16:40 -0500 Subject: vppinfra: add cmake option to grow vectors by 1 For debugging. Do not set this option in production. Type: feature Signed-off-by: Dave Barach Change-Id: I5e59671c4932e064bc087b85bf9c62c6f3bf48cf --- src/vppinfra/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vppinfra/CMakeLists.txt') diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 3998ae6f6a6..7723e6bad5d 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -18,6 +18,13 @@ enable_language(ASM) ############################################################################## set(LOG2_CACHE_LINE_BYTES ${VPP_LOG2_CACHE_LINE_SIZE}) +option(VPP_VECTOR_GROW_BY_ONE "Vectors grow by one, instead of 3/2" OFF) +if(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 1) +else(VPP_VECTOR_GROW_BY_ONE) + set(VECTOR_GROW_BY_ONE 0) +endif(VPP_VECTOR_GROW_BY_ONE) + configure_file( ${CMAKE_SOURCE_DIR}/vppinfra/config.h.in ${CMAKE_BINARY_DIR}/vppinfra/config.h -- cgit 1.2.3-korg