Opened 13 years ago

Last modified 4 years ago

#8558 new enhancement

[Build system] should abort on updating nonexistent target

Reported by: diver Owned by: bonefish
Priority: normal Milestone: R1.1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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 (3)

comment:1 by bonefish, 12 years ago

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 by luroh, 12 years ago

Type: bugenhancement

comment:3 by pulkomandy, 4 years ago

Milestone: R1R1.1
Note: See TracTickets for help on using tickets.