You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Enable all standard released Triton features, backends, repository agents, caches, endpoints, and file systems.",
2606
2597
)
2607
2598
2599
+
defadd_cmake_args(element, parser):
2600
+
dependent_kwargs=dict(
2601
+
nargs=3,
2602
+
metavar=(f"<{element}>","<name>","<value>"),
2603
+
)
2604
+
ifelement=="core":
2605
+
# "core" is a special case: it is already a specific component, so no need to select a specific instance of its element type
2606
+
dependent_kwargs=dict(
2607
+
nargs=2,
2608
+
metavar=("<name>","<value>"),
2609
+
)
2610
+
parser.add_argument(
2611
+
f"--extra-{element}-cmake-arg",
2612
+
action="append",
2613
+
required=False,
2614
+
default=[],
2615
+
help=f"Extra CMake argument for {element} build. The argument is passed to CMake as -D<name>=<value> and is included after all CMake arguments added by build.py.",
2616
+
**dependent_kwargs
2617
+
)
2618
+
parser.add_argument(
2619
+
f"--override-{element}-cmake-arg",
2620
+
action="append",
2621
+
required=False,
2622
+
default=[],
2623
+
help=f"Override specified backend CMake argument in the {element} build. The argument is passed to CMake as -D<name>=<value>. This flag only impacts CMake arguments that are used by build.py. To unconditionally add a CMake argument to the {element} build use --extra-{element}-cmake-arg.",
2624
+
**dependent_kwargs
2625
+
)
2626
+
2608
2627
element_groups= {}
2609
2628
forelement, propertiesinELEMENTS.items():
2610
2629
if'strict'inproperties:
@@ -2659,6 +2678,11 @@ def enable_all(default):
2659
2678
default=[],
2660
2679
help=f'Select <org> for specified <{element}>, to use the fork of the corresponding repository from <org> instead of the default --github-organization value.',
help="Do not create fresh clones of repos that have already been cloned.",
2682
2706
)
2683
-
parser.add_argument(
2684
-
"--extra-core-cmake-arg",
2685
-
action="append",
2686
-
metavar=("<name>","<value>"),
2687
-
nargs=2,
2688
-
required=False,
2689
-
default=[],
2690
-
help="Extra CMake argument. The argument is passed to CMake as -D<name>=<value> and is included after all CMake arguments added by build.py for the core builds.",
2691
-
)
2692
-
parser.add_argument(
2693
-
"--override-core-cmake-arg",
2694
-
action="append",
2695
-
metavar=("<name>","<value>"),
2696
-
nargs=2,
2697
-
required=False,
2698
-
default=[],
2699
-
help="Override specified CMake argument in the build. The argument is passed to CMake as -D<name>=<value>. This flag only impacts CMake arguments that are used by build.py. To unconditionally add a CMake argument to the core build use --extra-core-cmake-arg.",
2700
-
)
2701
-
parser.add_argument(
2702
-
"--extra-backend-cmake-arg",
2703
-
action="append",
2704
-
metavar=("<backend>","<name>","<value>"),
2705
-
nargs=3,
2706
-
required=False,
2707
-
default=[],
2708
-
help="Extra CMake argument for a backend build. The argument is passed to CMake as -D<name>=<value> and is included after all CMake arguments added by build.py for the backend.",
2709
-
)
2710
-
parser.add_argument(
2711
-
"--override-backend-cmake-arg",
2712
-
action="append",
2713
-
metavar=("<backend>","<name>","<value>"),
2714
-
nargs=3,
2715
-
required=False,
2716
-
default=[],
2717
-
help="Override specified backend CMake argument in the build. The argument is passed to CMake as -D<name>=<value>. This flag only impacts CMake arguments that are used by build.py. To unconditionally add a CMake argument to the backend build use --extra-backend-cmake-arg.",
0 commit comments