Reproducible builds

Marcus Meissner marcus at jet.franken.de
Mon Mar 6 10:42:41 CST 2017


I have changed it to emit only one bison call though... for both files.

Does that work?

Ciao, Marcus 

Am 6. März 2017 16:44:50 MEZ schrieb Alexandre Julliard <julliard at winehq.org>:
>Marcus Meissner <marcus at jet.franken.de> writes:
>
>> Which is caused by these Makefile rules:
>>
>> mcy.tab.h: /home/marcus/projects/wine/tools/wmc/mcy.y
>>         $(BISON) -p mcy_ -o mcy.tab.c -d
>/home/marcus/projects/wine/tools/wmc/mcy.y
>> mcy.tab.c: /home/marcus/projects/wine/tools/wmc/mcy.y mcy.tab.h
>>         $(BISON) -p mcy_ -o $@
>/home/marcus/projects/wine/tools/wmc/mcy.y
>>
>> The same bison call will generate both mcy.tab.h and mcy.tab.c, but
>the rules race each other
>> due to the timestamp of mcy.tab.h being too close to mcy.tab.c.
>>
>> A rule like:
>>
>> mcy.tab.h mcy.tab.c: /home/marcus/projects/wine/tools/wmc/mcy.y
>>         $(BISON) -p mcy_ -o mcy.tab.c -d
>/home/marcus/projects/wine/tools/wmc/mcy.y
>>
>> will also work. I will be sending a patch.
>
>No, that doesn't work because both commands can run at the same time
>and
>overwrite each other files. That's why the .tab.c needs a dependency on
>the .tab.h.
>
>-- 
>Alexandre Julliard
>julliard at winehq.org

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20170306/446a4304/attachment.html>


More information about the wine-devel mailing list