summaryrefslogtreecommitdiff
path: root/lib/mlibc/options/internal/generic/global-config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/options/internal/generic/global-config.cpp')
-rw-r--r--lib/mlibc/options/internal/generic/global-config.cpp27
1 files changed, 0 insertions, 27 deletions
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 <stdlib.h>
-#include <string.h>
-#include <mlibc/global-config.hpp>
-
-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");
-}
-
-}