# fix logic for default entry point · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/44e2dbe117fe79b99a970990878a061bdd26ff55)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 44e2dbe117fe79b99a970990878a061bdd26ff55

Requested commit: 44e2dbe117fe79b99a970990878a061bdd26ff55

Commit: 44e2dbe117fe79b99a970990878a061bdd26ff55

Tree: 43431cc5b9026c75d907f62d911c1a9f9c39d57c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix logic for default entry point

when linking libc, the entry point is within libc.
when producing C code, the entry point is decided when compiling the C
code and does not need to be known up front.

fixes a false positive "error: unknown target entry point" when using
-ofmt=c.

```

## Parents

- [1edcea9ec80d9ca6fd9700ef605cfa9c3722817b](https://git.cafe/gitcafe/zig/commit/1edcea9ec80d9ca6fd9700ef605cfa9c3722817b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/44e2dbe117fe79b99a970990878a061bdd26ff55?format=markdown)
