[Mesa-dev] [PATCH] android: vulkan: add support for libmesa_vulkan_{util, wsi}
Emil Velikov
emil.l.velikov at gmail.com
Tue Feb 28 18:18:01 UTC 2017
On 28 February 2017 at 16:05, Eric Engestrom <eric.engestrom at imgtec.com> wrote:
>> > The quick and dirty fix is to add a rule forcing the serialisation, like
>> > this:
>> > util/vk_enum_to_str.c: util/vk_enum_to_str.h
>> > This fixes the race condition, but still writes both files twice for no
>> > reason.
>> >
>> Are you sure that will generate them twice - can you elaborate a bit ?
>
> You can try it yourself with this makefile:
> ----8<----
> all: foo bar
> foo bar:
> echo $@
> ---->8----
>
> $ make
> echo foo
> foo
> echo bar
> bar
>
> It runs both targets, regardless of the fact they have the same rule.
>
I was wondering about the "foo.c: bar.h" case, like below.
----8<----
all: foo.c bar.h
bar.h:
@echo $@
foo.c: bar.h
---->8----
$make -f foo
bar.h
It does it once on my end. Perhaps I'm missing something ?
-Emil
More information about the mesa-dev
mailing list