# improve header searchlist handling in build, main · gitcafe/zig

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

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

Visibility: public

Requested revision: 0b47e69b7c0aedbc142400305cda86ef58b41656

Requested commit: 0b47e69b7c0aedbc142400305cda86ef58b41656

Commit: 0b47e69b7c0aedbc142400305cda86ef58b41656

Tree: 69ddb125e0d0cabc888045697f26da92b5c10f06

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
improve header searchlist handling in build, main

build.zig:
- use "-I" instead of "-isystem" for `b.addSearchPrefix()`

main.zig:
- silently ignore superfluous search dirs
- warn when a dir is added to multiple searchlists
- consolidate "expected paramter after {s}" fatal error messages
- rename command-line switch `-dirafter` → `-idirafter`

closes #12888

```

## Parents

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

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