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.",
2612
2603
)
2613
2604
2605
+
defadd_cmake_args(element, parser):
2606
+
dependent_kwargs=dict(
2607
+
nargs=3,
2608
+
metavar=(f"<{element}>","<name>","<value>"),
2609
+
)
2610
+
ifelement=="core":
2611
+
# "core" is a special case: it is already a specific component, so no need to select a specific instance of its element type
2612
+
dependent_kwargs=dict(
2613
+
nargs=2,
2614
+
metavar=("<name>","<value>"),
2615
+
)
2616
+
parser.add_argument(
2617
+
f"--extra-{element}-cmake-arg",
2618
+
action="append",
2619
+
required=False,
2620
+
default=[],
2621
+
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.",
2622
+
**dependent_kwargs
2623
+
)
2624
+
parser.add_argument(
2625
+
f"--override-{element}-cmake-arg",
2626
+
action="append",
2627
+
required=False,
2628
+
default=[],
2629
+
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.",
2630
+
**dependent_kwargs
2631
+
)
2632
+
2614
2633
element_groups= {}
2615
2634
forelement, propertiesinELEMENTS.items():
2616
2635
if'strict'inproperties:
@@ -2665,6 +2684,11 @@ def enable_all(default):
2665
2684
default=[],
2666
2685
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.",
2688
2712
)
2689
-
parser.add_argument(
2690
-
"--extra-core-cmake-arg",
2691
-
action="append",
2692
-
metavar=("<name>","<value>"),
2693
-
nargs=2,
2694
-
required=False,
2695
-
default=[],
2696
-
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.",
2697
-
)
2698
-
parser.add_argument(
2699
-
"--override-core-cmake-arg",
2700
-
action="append",
2701
-
metavar=("<name>","<value>"),
2702
-
nargs=2,
2703
-
required=False,
2704
-
default=[],
2705
-
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.",
2706
-
)
2707
-
parser.add_argument(
2708
-
"--extra-backend-cmake-arg",
2709
-
action="append",
2710
-
metavar=("<backend>","<name>","<value>"),
2711
-
nargs=3,
2712
-
required=False,
2713
-
default=[],
2714
-
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.",
2715
-
)
2716
-
parser.add_argument(
2717
-
"--override-backend-cmake-arg",
2718
-
action="append",
2719
-
metavar=("<backend>","<name>","<value>"),
2720
-
nargs=3,
2721
-
required=False,
2722
-
default=[],
2723
-
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