diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-11-12 18:11:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-11-13 16:50:16 -0700 |
| commit | 77e7d97725a07bc3eaa7e9c7f9ffd7698f357f1a (patch) | |
| tree | 5f5e0b8d7e318c83f9e0b3cafc4b24ecfb9f251d /src/main.zig | |
| parent | 0184c8d86f614a216641039e06e97f08d439fff7 (diff) | |
| download | zig-77e7d97725a07bc3eaa7e9c7f9ffd7698f357f1a.tar.gz zig-77e7d97725a07bc3eaa7e9c7f9ffd7698f357f1a.zip | |
C backend: improve ergonomics of zig.h a little bit
Partially implements #13528. Enough to unblock the wasi-bootstrap
branch.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 71325b18d9..d7685af72f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3021,6 +3021,10 @@ fn buildOutputType( }); try test_exec_args.append(self_exe_path); try test_exec_args.append("run"); + if (zig_lib_directory.path) |p| { + try test_exec_args.appendSlice(&.{ "-I", p }); + } + if (link_libc) try test_exec_args.append("-lc"); if (!mem.eql(u8, target_arch_os_abi, "native")) { try test_exec_args.append("-target"); |
