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++.