File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 26
26
watchos
27
27
test
28
28
validation-test
29
+ lit-args =-v
29
30
30
31
dash-dash
31
32
@@ -201,6 +202,7 @@ skip-test-watchos-host
201
202
[preset: buildbot_incremental_base]
202
203
test
203
204
validation-test
205
+ lit-args =-v
204
206
205
207
dash-dash
206
208
@@ -449,6 +451,7 @@ build-subdir=buildbot_incremental_llvmonly
449
451
release-debug
450
452
assertions
451
453
test =0
454
+ lit-args =-v
452
455
453
456
dash-dash
454
457
613
616
validation-test
614
617
long-test
615
618
foundation
619
+ lit-args =-v
616
620
617
621
dash-dash
618
622
@@ -672,6 +676,7 @@ assertions
672
676
release
673
677
test
674
678
validation-test
679
+ lit-args =-v
675
680
676
681
dash-dash
677
682
Original file line number Diff line number Diff line change @@ -796,6 +796,9 @@ class BuildScriptInvocation(object):
796
796
if args .dry_run :
797
797
impl_args += ["--dry-run" ]
798
798
799
+ if args .lit_args :
800
+ impl_args += ["--llvm-lit-args=%s" % args .lit_args ]
801
+
799
802
# Compute the set of host-specific variables, which we pass through to
800
803
# the build script via environment variables.
801
804
host_specific_variables = self .compute_host_specific_variables ()
@@ -1947,6 +1950,12 @@ details of the setups of other systems or automated environments.""")
1947
1950
"--skip-test-optimized" ,
1948
1951
action = arguments .action .unavailable )
1949
1952
1953
+ parser .add_argument (
1954
+ "--lit-args" ,
1955
+ help = "lit args to use when testing" ,
1956
+ metavar = "LITARGS" ,
1957
+ default = "-sv" )
1958
+
1950
1959
args = migration .parse_args (parser , sys .argv [1 :])
1951
1960
1952
1961
if args .build_script_impl_args :
Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ KNOWN_SETTINGS=(
225
225
# TODO: Remove this some time later.
226
226
user-config-args " " " **Renamed to --extra-cmake-options**: User-supplied arguments to cmake when used to do configuration."
227
227
only-execute " all" " Only execute the named action (see implementation)"
228
+ llvm-lit-args " " " If set, override the lit args passed to LLVM"
228
229
)
229
230
230
231
# Centralized access point for traced command invocation.
@@ -651,6 +652,15 @@ function set_build_options_for_host() {
651
652
-DSWIFT_HOST_VARIANT_SDK=" ${SWIFT_HOST_VARIANT_SDK} "
652
653
-DSWIFT_HOST_VARIANT_ARCH=" ${SWIFT_HOST_VARIANT_ARCH} "
653
654
)
655
+
656
+ if [[ " ${LLVM_LIT_ARGS} " ]]; then
657
+ llvm_cmake_options+=(
658
+ -DLLVM_LIT_ARGS=" ${LLVM_LIT_ARGS} "
659
+ )
660
+ swift_cmake_options+=(
661
+ -DLLVM_LIT_ARGS=" ${LLVM_LIT_ARGS} "
662
+ )
663
+ fi
654
664
}
655
665
656
666
function configure_default_options() {
You can’t perform that action at this time.
0 commit comments