diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-26 14:35:34 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-26 14:35:34 +0200 |
| commit | 29df0ca39db8c336d6bdc7090f6d5f51b7463602 (patch) | |
| tree | 8f26542420e73f0588c6d4f167711a318fb23dfd /src/Compilation.zig | |
| parent | 570c75cb7440935990338ee733cce4a0b966c57b (diff) | |
| parent | 9c95f38a7c1defc7f63a4815bfc2d76a5f9f83f6 (diff) | |
| download | zig-29df0ca39db8c336d6bdc7090f6d5f51b7463602.tar.gz zig-29df0ca39db8c336d6bdc7090f6d5f51b7463602.zip | |
Merge remote-tracking branch 'origin/master' into zld-incr
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7987ed95df..7dc726aeb2 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2557,6 +2557,7 @@ pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { var argv = std.ArrayList([]const u8).init(comp.gpa); defer argv.deinit(); + try argv.append(""); // argv[0] is program name, actual args start at [1] try comp.addTranslateCCArgs(arena, &argv, .c, out_dep_path); try argv.append(out_h_path); |
