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:
Augustin Cavalier
2024-12-23 15:54:49 -05:00
parent 1aabdb2b8d
commit ce14c3c0f1
+4 -2
View File
@@ -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 = ;
}