mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Compilation: pass libc include directories when compiling assembly_with_cpp
This commit is contained in:
parent
8f7b50e2c4
commit
4870e002f2
@ -5363,6 +5363,11 @@ pub fn addCCArgs(
|
||||
const c_headers_dir = try std.fs.path.join(arena, &[_][]const u8{ comp.zig_lib_directory.path.?, "include" });
|
||||
try argv.append("-isystem");
|
||||
try argv.append(c_headers_dir);
|
||||
|
||||
for (comp.libc_include_dir_list) |include_dir| {
|
||||
try argv.append("-isystem");
|
||||
try argv.append(include_dir);
|
||||
}
|
||||
}
|
||||
|
||||
// The Clang assembler does not accept the list of CPU features like the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user