From ab2ead1296b10df555a7ee2e8fe260f6ecd0b85c Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Mon, 27 Jul 2026 14:56:21 -0700 Subject: [PATCH] remove obsolete extern declaration of main() --- compiler/src/dmd/glue/package.d | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/dmd/glue/package.d b/compiler/src/dmd/glue/package.d index 33826c7d5643..14e2f0dc9245 100644 --- a/compiler/src/dmd/glue/package.d +++ b/compiler/src/dmd/glue/package.d @@ -1726,6 +1726,7 @@ private bool entryPointFunctions(Obj objmod, FuncDeclaration fd) { /* Reference the C main() to pull it in to the executable */ + static if (0) // superceded by object's import of core.internal.entrypoint : _d_cmain final switch (target.objectFormat()) { case Target.ObjectFormat.elf: