From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- .../options/internal/generic/global-config.cpp | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 lib/mlibc/options/internal/generic/global-config.cpp (limited to 'lib/mlibc/options/internal/generic/global-config.cpp') diff --git a/lib/mlibc/options/internal/generic/global-config.cpp b/lib/mlibc/options/internal/generic/global-config.cpp deleted file mode 100644 index 264a984..0000000 --- a/lib/mlibc/options/internal/generic/global-config.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -#include - -namespace mlibc { - -struct GlobalConfigGuard { - GlobalConfigGuard(); -}; - -GlobalConfigGuard guard; - -GlobalConfigGuard::GlobalConfigGuard() { - // Force the config to be created during initialization of libc.so. - mlibc::globalConfig(); -} - -static bool envEnabled(const char *env) { - auto value = getenv(env); - return value && *value && *value != '0'; -} - -GlobalConfig::GlobalConfig() { - debugMalloc = envEnabled("MLIBC_DEBUG_MALLOC"); -} - -} -- cgit v1.2.3