Skip to content

Commit 1f47490

Browse files
memshardedczoido
andauthored
improve build-order-merge clarifying multiple filenames behavior (#4116)
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
1 parent 86b513f commit 1f47490

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

reference/commands/graph/build_order_merge.rst

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,35 @@ When 2 or more "build-order" files are merged, the resulting merge contains a ``
2828
}
2929
3030
With the ``build_order_win`` and ``build_order_nix`` being the "build-order" filenames that were used as inputs to the merge, and which will be referenced in the ``filenames`` field of every ``package`` in the build order. This way, it is easier to obtain the necessary command line arguments to build a specific package binary in the build-order when building multiple configurations.
31-
31+
32+
Note that when a merged build order containing multilpe ``filenames`` something like:
33+
34+
.. code-block:: json
35+
36+
{
37+
"package_id": "efa83b160a55b033c4ea706ddb980cd708e3ba1b",
38+
"context": "build",
39+
"binary": "Build",
40+
"filenames": [
41+
"build_order_win",
42+
"build_order_nix"
43+
],
44+
"build_args": "--tool-requires=dep/0.1 --build=dep/0.1",
45+
"info": {
46+
"settings": {
47+
"build_type": "Release"
48+
}
49+
}
50+
}
51+
52+
"profiles": {
53+
"build_order_win": {
54+
"args": "-pr:h=\"profile1\" -s:h=\"os=Windows\" ..."
55+
},
56+
"build_order_nix": {
57+
"args": "-pr:h=\"profile2\" -s:h=\"os=Linux\" ..."
58+
}
59+
}
60+
61+
62+
Then, the ``filename`` to be used is the first one, in this case ``build_order_win``, because the ``context`` and ``build_args`` arguments matches this profile information. The other filenames are provided as a reference to which other individual build-order files had this ``package_id`` listed for build.

0 commit comments

Comments
 (0)