Opened 7 years ago

Last modified 7 years ago

#8558 new enhancement

[Build system] should abort on updating nonexistent target

Reported by: diver Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev44133, gcc2hybrid.

I was trying to update something and accidentally misspelled target name. I couldn't figure out why the binary doesn't change. Later I noticed that update feature doesn't show any errors if you try to update something which doesn't even exist.

jam -j2 @disk update 123

Change History (2)

comment:1 Changed 7 years ago by bonefish

That may be fixed by inserting

Depends $(buildTarget) : $(HAIKU_BUILD_PROFILE_PARAMETERS) ;

in the "update" case block in DefineBuildProfile in build/jam/MiscRules. I don't have the time to test this ATM. Not sure when/how the missing target is reported with this solution. It may be nicer to explicitly check whether all update targets have been found after having processed the complete jamfile tree.

comment:2 Changed 7 years ago by luroh

Type: bugenhancement
Note: See TracTickets for help on using tickets.