[build2] Rerunning build2 and getting different results (errors)

Wilhelm Meier wilhelm.meier at hs-kl.de
Sat May 13 07:16:01 UTC 2023



On 12.05.23 14:51, Boris Kolpackov wrote:
> Wilhelm Meier via users <users at build2.org> writes:
> 
>> The buildfile in /src/boards/protoboard/tests looks like:
>> ---
>>
>> l = ../../../libs
>>
>> exe{test00}: cxx{test00} $l/std/lib{std} $l/mcu/general/lib{general}
>> ---
> 
> This incorrect: you are using the targets (lib{std}, lib{general})
> without including or importing their declarations. This is discussed
> in detail in the manual, specifically in Target Importation:

If this is incorrect: why does it work (sometimes), but sometimes it 
does not, without changing anything?

And: "b clean update" works allways.


> 
> https://build2.org/build2/doc/build2-build-system-manual.xhtml#intro-import

the "include" is done in the top-level include file. But maybe this 
incorrect. But why does it work in "b clean update"?



More information about the users mailing list