Skip to content

Commit 304ded6

Browse files
authored
remove obsolete extern declaration of main() (#23473)
1 parent 8418b22 commit 304ded6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/src/dmd/glue/package.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,7 @@ private bool entryPointFunctions(Obj objmod, FuncDeclaration fd)
17261726
{
17271727
/* Reference the C main() to pull it in to the executable
17281728
*/
1729+
static if (0) // superceded by object's import of core.internal.entrypoint : _d_cmain
17291730
final switch (target.objectFormat())
17301731
{
17311732
case Target.ObjectFormat.elf:

0 commit comments

Comments
 (0)