Skip to content

Commit 15ceabc

Browse files
authored
test/CMakeLists.txt: fix --lit-args unhandled in Wasm tests (#83285)
Due to the fact that Wasm testing targets are configured by Python `build-script` unlike `build-script-impl` for the rest of testing targets, `--lit-args` value was ignored and not recorded in these targets. These are configured as `LLVM_LIT_ARGS` in CMake. Let's assign the `LLVM_LIT_ARGS` configuration value in Python `build-script` to handle `--lit-args` consistently for all testing targets.
1 parent 84bb2cc commit 15ceabc

File tree

1 file changed

+1
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+1
-0
lines changed

utils/swift_build_support/swift_build_support/products/wasmstdlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def _build_stdlib(self, host_target, target_triple, llvm_cmake_dir):
196196
self.build_dir, 'test-wasi-wasm32', path) for path in lit_test_paths]
197197
self.cmake_options.define('SWIFT_LIT_TEST_PATHS:STRING',
198198
';'.join(lit_test_paths))
199+
self.cmake_options.define('LLVM_LIT_ARGS', self.args.lit_args)
199200
test_driver_options = [
200201
# compiler-rt is not installed in the final toolchain, so use one
201202
# in build dir

0 commit comments

Comments
 (0)