summaryrefslogtreecommitdiff
path: root/src/stub_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stub_main.cc')
-rw-r--r--src/stub_main.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stub_main.cc b/src/stub_main.cc
new file mode 100644
index 0000000..8540fcd
--- /dev/null
+++ b/src/stub_main.cc
@@ -0,0 +1,13 @@
+// Stub main for size measurement builds.
+// Binary compiles but does NOT run.
+// This file is only compiled when STRIP_EXTERNAL_LIBS is defined.
+
+#if defined(STRIP_EXTERNAL_LIBS)
+
+int main(int argc, char** argv) {
+ (void)argc;
+ (void)argv;
+ return 0;
+}
+
+#endif // STRIP_EXTERNAL_LIBS