| ... | @@ -4438,6 +4438,12 @@ pub fn addCCArgs( | ... | @@ -4438,6 +4438,12 @@ pub fn addCCArgs( |
| 4438 | }, | 4438 | }, |
| 4439 | .shared_library, .ll, .bc, .unknown, .static_library, .object, .def, .zig, .res => {}, | 4439 | .shared_library, .ll, .bc, .unknown, .static_library, .object, .def, .zig, .res => {}, |
| 4440 | .assembly, .assembly_with_cpp => { | 4440 | .assembly, .assembly_with_cpp => { |
| | 4441 | if (ext == .assembly_with_cpp) { |
| | 4442 | const c_headers_dir = try std.fs.path.join(arena, &[_][]const u8{ comp.zig_lib_directory.path.?, "include" }); |
| | 4443 | try argv.append("-isystem"); |
| | 4444 | try argv.append(c_headers_dir); |
| | 4445 | } |
| | 4446 | |
| 4441 | // The Clang assembler does not accept the list of CPU features like the | 4447 | // The Clang assembler does not accept the list of CPU features like the |
| 4442 | // compiler frontend does. Therefore we must hard-code the -m flags for | 4448 | // compiler frontend does. Therefore we must hard-code the -m flags for |
| 4443 | // all CPU features here. | 4449 | // all CPU features here. |