8383from b2's command line alone; an own lane of such a library likewise.
8484
8585own-lane runs one own lane, OWN-LANE being one entry of the own-lanes matrix as JSON: it registers
86- the toolset of the lane it shares (Clang 18 when it names no target), and for an own lane of
87- EVERY_TARGET_LANES, which names no target yet builds for every target in one command, the toolsets
88- of wasip2, wasip3 and emscripten after it (its entry says wasm, emsdk and node, which its job
89- installs), prints its b2 command and runs it. Without a target, b2's exit status is its verdict;
90- with one, it writes DIR/<id>.xml, which the job uploads, and fails only when b2 cannot build at
91- all, as a lane does.
86+ the toolset of the lane it shares (Clang 18 when it names no target), prints its b2 command and runs
87+ it. Without a target, b2's exit status is its verdict; with one, it writes DIR/<id>.xml, which the
88+ job uploads, and fails only when b2 cannot build at all, as a lane does.
9289
9390register adds the toolsets of the lanes named by id to the user-config.jam, in their order, the
9491first being b2's default toolset: what the CI's tools job builds the tests of the tools with. A WASI
189186 ('document' , 'js' ), ('trystero' , 'interop' ),
190187 ('webrtc' , 'browser' ), ('webrtc' , 'interop' )}
191188
192- # The own lanes that name no target yet build for every target in one command, (library, lane):
193- # hash's measure, whose Jamfile names wasip2's, wasip3's and emscripten's toolsets in its
194- # programs' references. Their job installs wasi-sdk, wasmtime, emsdk and the CI's node, and
195- # registers those three toolsets after Clang 18's, b2's default, the native target's
196- # (own_lane_toolsets).
197- EVERY_TARGET_LANES = {('hash' , 'measure' )}
198-
199- # The lanes whose toolsets an own lane of EVERY_TARGET_LANES registers after its own.
200- EVERY_TARGET_TOOLSETS = ('wasip2' , 'wasip3' , 'emscripten' )
201-
202189# MSVC's lanes build 64-bit programs, embed their manifest with the linker and abbreviate b2's
203190# paths against Windows's MAX_PATH, as xstate-cpp's green Windows jobs did. b2 abbreviates each
204191# word of the toolset directory too, and msvc-14.3 and msvc-14.5 are their own abbreviations,
@@ -634,16 +621,6 @@ def own_lane_profile(own: OwnLane) -> Lane:
634621 return own_lane_base (own .target )
635622
636623
637- def own_lane_toolsets (own : OwnLane ) -> list [Lane ]:
638- """The lanes whose toolsets the own lane's job registers, in order, the first b2's default:
639- the lane it shares, then, for one of EVERY_TARGET_LANES, the lanes of EVERY_TARGET_TOOLSETS."""
640- lanes = [own_lane_profile (own )]
641- if (own .library , own .lane ) in EVERY_TARGET_LANES :
642- known = {lane .id : lane for lane in LANES }
643- lanes += [known [lane_id ] for lane_id in EVERY_TARGET_TOOLSETS ]
644- return lanes
645-
646-
647624def own_lane_entry (own : OwnLane ) -> dict [str , object ]:
648625 """The own lane as an entry of the own-lanes matrix: its library, its lane and its
649626 directories; its target and its id when it names one; and, for every entry, its kind, the name
@@ -659,10 +636,7 @@ def own_lane_entry(own: OwnLane) -> dict[str, object]:
659636 # with it, and a driven test its driver. Without the CI's Node, one would run with the
660637 # image's own, another version. A lane of programs alone, a served one, needs none.
661638 node = base .node or own .kind == 'original'
662- wasm , emsdk = base .wasm , base .emsdk
663- if (own .library , own .lane ) in EVERY_TARGET_LANES :
664- wasm = emsdk = node = True
665- entry .update (kind = own .kind , name = own .name , os = base .os , wasm = wasm , emsdk = emsdk ,
639+ entry .update (kind = own .kind , name = own .name , os = base .os , wasm = base .wasm , emsdk = base .emsdk ,
666640 node = node , cc = base .cc , cxx = base .cxx , external = needs_external (own .library ),
667641 chrome = (own .library , own .lane ) in CHROME_LANES )
668642 return entry
@@ -912,9 +886,7 @@ def run_lane(lane: Lane, user_config: Path, out_dir: Path, extra: list[str]) ->
912886
913887def run_own_lane (own : OwnLane , user_config : Path , out_dir : Path , extra : list [str ]) -> int :
914888 """Runs the own lane, and returns its exit status."""
915- # Each read first, so that one that cannot be read leaves user_config as it was.
916- for lane in [resolved (lane ) for lane in own_lane_toolsets (own )]:
917- register (lane , user_config )
889+ register (resolved (own_lane_profile (own )), user_config )
918890 if own .target is None :
919891 label = f'own lane { " " .join (own .requests )} '
920892 status = run_b2 (label , own_lane_command (own , user_config , None , extra ))
0 commit comments