~lattis/muon

d12bb29bdc9b25557f4cf5f140306e1642e65533 — Stone Tickle 2 months ago c4199e5
don't add nonexistent include dirs

this wasn't needed before, but is now since include_directories() has
been updated to also add an include for the same directory under build,
which may not exist.
1 files changed, 5 insertions(+), 0 deletions(-)

M src/backend/common_args.c
M src/backend/common_args.c => src/backend/common_args.c +5 -0
@@ 7,6 7,7 @@
#include "backend/common_args.h"
#include "functions/default/options.h"
#include "log.h"
#include "platform/filesystem.h"
#include "platform/path.h"

static bool


@@ 129,6 130,10 @@ setup_compiler_args_includes(struct workspace *wk, void *_ctx, obj v_id)
{
	const char *dir = get_cstr(wk, v_id);

	if (!fs_dir_exists(dir)) {
		return ir_cont;
	}

	if (path_is_absolute(dir)) {
		char rel[PATH_MAX];
		if (!path_relative_to(rel, PATH_MAX, wk->build_root, dir)) {