File tree 1 file changed +4
-6
lines changed
utils/swift_build_support/swift_build_support/products 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,10 @@ def build(self, host_target):
269
269
'llvm-size'
270
270
])
271
271
else :
272
- build_targets = ['all' ]
272
+ # We build LLVMTestingSupport unconditionally
273
+ # to support scenarios where tests are run
274
+ # outside of `build-script` (e.g. with `run-test`)
275
+ build_targets = ['all' , 'LLVMTestingSupport' ]
273
276
274
277
if self .args .llvm_ninja_targets_for_cross_compile_hosts and \
275
278
self .is_cross_compile_target (host_target ):
@@ -385,11 +388,6 @@ def build(self, host_target):
385
388
if self .args .build_lld :
386
389
llvm_enable_projects .append ('lld' )
387
390
388
- if self .args .test :
389
- # LLVMTestingSupport is not built at part of `all`
390
- # and is required by some Swift tests
391
- build_targets .append ('LLVMTestingSupport' )
392
-
393
391
llvm_cmake_options .define ('LLVM_ENABLE_PROJECTS' ,
394
392
';' .join (llvm_enable_projects ))
395
393
llvm_cmake_options .define ('LLVM_ENABLE_RUNTIMES' ,
You can’t perform that action at this time.
0 commit comments