build: Remove the profile from the JAM_TARGETS.
The DefineBuildProfile logic implicitly removes it later on when it replaces JAM_TARGETS entirely. But in some cases it may not do that, and so if we want it to be removed in all cases, we have to do that here. Fixes commands like "jam -q -jN @nightly-anyboot haiku.hpkg" giving a "don't know how to make @nightly-anyboot" message.
This commit is contained in:
@@ -97,8 +97,10 @@ rule ProcessCommandLineArguments
|
||||
# A target starting with "@" is a build profile.
|
||||
case @* : {
|
||||
HAIKU_BUILD_PROFILE = [ Match "@(.*)" : $(JAM_TARGETS[1]) ] ;
|
||||
HAIKU_BUILD_PROFILE_ACTION = $(JAM_TARGETS[2]:E=build) ;
|
||||
HAIKU_BUILD_PROFILE_PARAMETERS = $(JAM_TARGETS[3-]) ;
|
||||
JAM_TARGETS = $(JAM_TARGETS[2-]) ;
|
||||
|
||||
HAIKU_BUILD_PROFILE_ACTION = $(JAM_TARGETS[1]:E=build) ;
|
||||
HAIKU_BUILD_PROFILE_PARAMETERS = $(JAM_TARGETS[2-]) ;
|
||||
HAIKU_BUILD_PROFILE_DEFINED = ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user