~lattis/muon

include_directories: accept multiple args v1 APPLIED

Eli Schwartz: 1
 include_directories: accept multiple args

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~lattis/muon/patches/25136/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] include_directories: accept multiple args Export this patch

e.g. include_directories('incdir', 'incdir2') is valid and should
produce two -I paths.
---
 src/functions/default.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/functions/default.c b/src/functions/default.c
index 562de2e..015caf3 100644
--- a/src/functions/default.c
+++ b/src/functions/default.c
@@ -308,7 +308,7 @@ func_find_program(struct workspace *wk, uint32_t _, uint32_t args_node, uint32_t
static bool
func_include_directories(struct workspace *wk, uint32_t _, uint32_t args_node, uint32_t *obj)
{
	struct args_norm an[] = { { obj_any }, ARG_TYPE_NULL };
	struct args_norm an[] = { { ARG_TYPE_GLOB }, ARG_TYPE_NULL };

	if (!interp_args(wk, args_node, an, NULL, NULL)) {
		return false;
-- 
2.33.0
Looks good to me!