aboutsummaryrefslogtreecommitdiffstats
path: root/include/env_default.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/env_default.h')
-rw-r--r--include/env_default.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h
index a6724719eca..23430dc70d7 100644
--- a/include/env_default.h
+++ b/include/env_default.h
@@ -121,3 +121,9 @@ const char default_environment[] = {
}
#endif
};
+
+#if !defined(USE_HOSTCC) && !defined(DEFAULT_ENV_INSTANCE_EMBEDDED)
+#include <env_internal.h>
+static_assert(sizeof(default_environment) <= ENV_SIZE,
+ "Default environment is too large");
+#endif