[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gmake and ccache conspiring together in creating gremlins
From: |
Dmitry Goncharov |
Subject: |
Re: gmake and ccache conspiring together in creating gremlins |
Date: |
Mon, 8 Feb 2021 12:51:58 -0500 |
On Mon, Feb 8, 2021 at 12:36 PM Edward Welbourne <edward.welbourne@qt.io> wrote:
> Sounds to me like that's a bug: when the descriptors are closed, the
> part of MAKEFLAGS that claims they're make's jobserver file descriptors
> should be removed, since that's when the claim stops being true.
make uses posix_spawn by default to create children.
posix_spawn makes it difficult to modify env per child.
As a workaround the user can have the recipe remove (or modify) MAKEFLAGS
E.g.
%.o: %.c ; unset MAKEFLAGS && $(CC) $(CFLAGS) -o $@ -c $<
regards, Dmitry