Skip to content

Commit

Permalink
meson: fix generated header paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amibranch committed Aug 21, 2024
1 parent 96ac92a commit f0497e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ endif
errnos_h = custom_target('errnos.h',
input : 'tools/all_errnos',
output : 'errnos.h',
command : ['tools/all_errnos', sed.full_path(),
command : ['tools/all_errnos', sed.full_path(), '@OUTPUT@',
cc.cmd_array(), get_option('c_args')],
)

Expand Down Expand Up @@ -3222,7 +3222,7 @@ endif
syscalls_h = custom_target('syscalls.h',
input : 'tools/all_syscalls',
output : 'syscalls.h',
command : ['tools/all_syscalls', sed.full_path(),
command : ['tools/all_syscalls', sed.full_path(), '@OUTPUT@',
cc.cmd_array(), get_option('c_args')],
)

Expand Down
4 changes: 2 additions & 2 deletions misc-utils/Makemodule.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
errnos.h: $(top_srcdir)/tools/all_errnos
@echo ' GEN $@'
@$(top_srcdir)/tools/all_errnos "$(SED)" $(CC) $(CFLAGS)
@$(top_srcdir)/tools/all_errnos "$(SED)" "$@" $(CC) $(CFLAGS)

-include errnos.h.deps
CLEANFILES += errnos.h errnos.h.deps
Expand Down Expand Up @@ -314,7 +314,7 @@ misc-utils/enosys.c: syscalls.h errnos.h

syscalls.h: $(top_srcdir)/tools/all_syscalls
@echo ' GEN $@'
@$(top_srcdir)/tools/all_syscalls "$(SED)" $(CC) $(CFLAGS)
@$(top_srcdir)/tools/all_syscalls "$(SED)" "$@" $(CC) $(CFLAGS)

-include syscalls.h.deps
CLEANFILES += syscalls.h syscalls.h.deps
Expand Down
3 changes: 2 additions & 1 deletion tools/all_errnos
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set -o pipefail

SED="$1"
shift
OUTPUT=errnos.h
OUTPUT="$1"
shift
ERRNO_INCLUDES="
#include <sys/errno.h>
"
Expand Down
3 changes: 2 additions & 1 deletion tools/all_syscalls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -o pipefail

SED="$1"
shift
OUTPUT=syscalls.h
OUTPUT="$1"
shift
SYSCALL_INCLUDES="
#include <sys/syscall.h>
"
Expand Down

0 comments on commit f0497e7

Please sign in to comment.