# un-special-case startup code in the std lib · gitcafe/zig

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

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

Visibility: public

Requested revision: fff3c1fff4c3ebfcb2bd4f08a43ae7815b5c446b

Requested commit: fff3c1fff4c3ebfcb2bd4f08a43ae7815b5c446b

Commit: fff3c1fff4c3ebfcb2bd4f08a43ae7815b5c446b

Tree: ea996d6252efe24158a802fb50c1a28c3b3d6717

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
un-special-case startup code in the std lib

Previously, the compiler had special logic to determine whether to
include the startup code, which was in `std/special/start.zig`. Now,
the file is moved to `std/start.zig`, and there is no special logic
in the compiler. Instead, the standard library unconditionally imports
the `start.zig` file, which then has a `comptime` block that does the
logic of determining what, if any, start symbols to export. Instead of
`start.zig` being in its own special package, it is just another normal
file that is part of the standard library.

`std.builtin.TestFn` is now part of the standard library rather than
specially generated by the compiler.

```

## Parents

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

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