Skip to content

Commit

Permalink
improve header searchlist handling in build, main
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikdusan authored and andrewrk committed Oct 12, 2022
1 parent c23b3e6 commit 0b47e69
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 135 deletions.
2 changes: 1 addition & 1 deletion lib/std/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3123,7 +3123,7 @@ pub const LibExeObjStep = struct {
try zig_args.append(builder.pathJoin(&.{
search_prefix, "lib",
}));
try zig_args.append("-isystem");
try zig_args.append("-I");
try zig_args.append(builder.pathJoin(&.{
search_prefix, "include",
}));
Expand Down
Loading

0 comments on commit 0b47e69

Please sign in to comment.