| ... | ... | @@ -3758,7 +3758,6 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 3758 | 3758 | "clang", |
| 3759 | 3759 | c_object.src.src_path, |
| 3760 | 3760 | }); |
| 3761 | | try argv.appendSlice(c_object.src.extra_flags); |
| 3762 | 3761 | |
| 3763 | 3762 | const ext = classifyFileExt(c_object.src.src_path); |
| 3764 | 3763 | |
| ... | ... | @@ -3771,6 +3770,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 3771 | 3770 | comp.disable_c_depfile and comp.clang_passthrough_mode) |
| 3772 | 3771 | { |
| 3773 | 3772 | try comp.addCCArgs(arena, &argv, ext, null); |
| 3773 | try argv.appendSlice(c_object.src.extra_flags); |
| 3774 | 3774 | |
| 3775 | 3775 | const out_obj_path = if (comp.bin_file.options.emit) |emit| |
| 3776 | 3776 | try emit.directory.join(arena, &.{emit.sub_path}) |
| ... | ... | @@ -3811,6 +3811,7 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 3811 | 3811 | else |
| 3812 | 3812 | try std.fmt.allocPrint(arena, "{s}.d", .{out_obj_path}); |
| 3813 | 3813 | try comp.addCCArgs(arena, &argv, ext, out_dep_path); |
| 3814 | try argv.appendSlice(c_object.src.extra_flags); |
| 3814 | 3815 | |
| 3815 | 3816 | try argv.ensureUnusedCapacity(5); |
| 3816 | 3817 | switch (comp.clang_preprocessor_mode) { |