authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-26 04:50:20+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 01:32:47+02:00
log2747fca2267d909dad582bc129e4a5b6f686639b
tree244352b9234dc6a40b045a8db4c1c1dc6c5e168b
parentc9664cb657e8bd30fefdd2eb4249e89d75edc91a
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

generate_linux_syscalls: Simplify include paths.

Using the tooling includes means we won't run into the asm/bitsperlong.h issue.

1 files changed, 8 insertions(+), 11 deletions(-)

tools/generate_linux_syscalls.zig+8-11
...@@ -273,8 +273,8 @@ pub fn main() !void {...@@ -273,8 +273,8 @@ pub fn main() !void {
273 "-P",273 "-P",
274 "-nostdinc",274 "-nostdinc",
275 // Using -I=[dir] includes the zig linux headers, which we don't want.275 // Using -I=[dir] includes the zig linux headers, which we don't want.
276 "-Iinclude",276 "-Itools/include",
277 "-Iinclude/uapi",277 "-Itools/include/uapi",
278 // Output the syscall in a format we can easily recognize.278 // Output the syscall in a format we can easily recognize.
279 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",279 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",
280 "arch/arm64/include/uapi/asm/unistd.h",280 "arch/arm64/include/uapi/asm/unistd.h",
...@@ -328,9 +328,8 @@ pub fn main() !void {...@@ -328,9 +328,8 @@ pub fn main() !void {
328 "-dD",328 "-dD",
329 "-P",329 "-P",
330 "-nostdinc",330 "-nostdinc",
331 "-Iinclude",331 "-Itools/include",
332 "-Iinclude/uapi",332 "-Itools/include/uapi",
333 "-Iarch/riscv/include/uapi",
334 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",333 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",
335 "arch/riscv/include/uapi/asm/unistd.h",334 "arch/riscv/include/uapi/asm/unistd.h",
336 };335 };
...@@ -383,9 +382,8 @@ pub fn main() !void {...@@ -383,9 +382,8 @@ pub fn main() !void {
383 "-dD",382 "-dD",
384 "-P",383 "-P",
385 "-nostdinc",384 "-nostdinc",
386 "-Iinclude",385 "-Itools/include",
387 "-Iinclude/uapi",386 "-Itools/include/uapi",
388 "-Iarch/riscv/include/uapi",
389 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",387 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",
390 "arch/riscv/include/uapi/asm/unistd.h",388 "arch/riscv/include/uapi/asm/unistd.h",
391 };389 };
...@@ -438,9 +436,8 @@ pub fn main() !void {...@@ -438,9 +436,8 @@ pub fn main() !void {
438 "-dD",436 "-dD",
439 "-P",437 "-P",
440 "-nostdinc",438 "-nostdinc",
441 "-Iinclude",439 "-Itools/include",
442 "-Iinclude/uapi",440 "-Itools/include/uapi",
443 "-Iarch/loongarch/include/uapi",
444 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",441 "-D __SYSCALL(nr, nm)=zigsyscall nm nr",
445 "arch/loongarch/include/uapi/asm/unistd.h",442 "arch/loongarch/include/uapi/asm/unistd.h",
446 };443 };