[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54233] Infinite loop w/ -j2 & multiple pattern rules

From: Aleksey Victor Trevelin Covacevi
Subject: [bug #54233] Infinite loop w/ -j2 & multiple pattern rules
Date: Mon, 2 Jul 2018 14:25:29 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

Follow-up Comment #1, bug #54233 (project make):

The use case here is the following:

* %.lnk/%.elf: the recipe links an .elf and touches a tag file (.lnk);
* %.dbg/%.elf: the recipe produces a .dbg file, updating (touching) an .elf in
the process; the rule must depend only on %.lnk or it will be triggered
unnecessarily in the next build.

%.elf is mentioned as a target in both rules because it is updated (touched)
by both rules. (.DELETE_ON_ERROR will delete .elf files when either rule
fails, which is correct.)

A workaround is not using .ONESHELL nor single-line recipes; or refrain from
mentioning %.elf as a prerequisite (and instead mentioning %.lnk).


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]