From 45b6116c4c92a23644d9641ba73d22f574094620 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 30 Sep 2021 13:38:30 +0200 Subject: [PATCH] sys/cxx_ctor_guards: model Kconfig --- sys/Kconfig | 1 + sys/cxx_ctor_guards/Kconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 sys/cxx_ctor_guards/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index b54a6c53b8..f6d5e3979c 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -19,6 +19,7 @@ rsource "checksum/Kconfig" rsource "color/Kconfig" rsource "crypto/Kconfig" rsource "congure/Kconfig" +rsource "cxx_ctor_guards/Kconfig" rsource "div/Kconfig" rsource "embunit/Kconfig" rsource "entropy_source/Kconfig" diff --git a/sys/cxx_ctor_guards/Kconfig b/sys/cxx_ctor_guards/Kconfig new file mode 100644 index 0000000000..99b359858b --- /dev/null +++ b/sys/cxx_ctor_guards/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_CXX_CTOR_GUARDS + bool "C++ constructor guards for static instances" + depends on TEST_KCONFIG + help + C++ constructor guards for thread-safe initialization of static instances. + Warning! this module is likely only compatible with g++.