authorgravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2024-06-25 12:45:37+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-03 15:37:49-04:00
log4870e002f213d7002ac1941c6a204aff79137d54
treed4dbacb7a996d30337578e424854aaee9725f35d
parent8f7b50e2c4ad0c08015bce02a3ba8a7a9a058e11

Compilation: pass libc include directories when compiling assembly_with_cpp


1 files changed, 5 insertions(+), 0 deletions(-)

src/Compilation.zig+5
...@@ -5363,6 +5363,11 @@ pub fn addCCArgs(...@@ -5363,6 +5363,11 @@ pub fn addCCArgs(
5363 const c_headers_dir = try std.fs.path.join(arena, &[_][]const u8{ comp.zig_lib_directory.path.?, "include" });5363 const c_headers_dir = try std.fs.path.join(arena, &[_][]const u8{ comp.zig_lib_directory.path.?, "include" });
5364 try argv.append("-isystem");5364 try argv.append("-isystem");
5365 try argv.append(c_headers_dir);5365 try argv.append(c_headers_dir);
5366
5367 for (comp.libc_include_dir_list) |include_dir| {
5368 try argv.append("-isystem");
5369 try argv.append(include_dir);
5370 }
5366 }5371 }
53675372
5368 // The Clang assembler does not accept the list of CPU features like the5373 // The Clang assembler does not accept the list of CPU features like the