Skip to content

Commit 8d41e4e

Browse files
authored
test: Add missing target-specific lit properties for WASI (#67472)
Lack of these properties prevents the WASI test suite from running successfully.
1 parent a5f2f76 commit 8d41e4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,10 +1856,16 @@ elif run_os == 'wasi':
18561856
config.target_sil_opt = (
18571857
'%s -target %s %s %s %s' %
18581858
(config.sil_opt, config.variant_triple, config.resource_dir_opt, mcp_opt, config.sil_test_options))
1859+
subst_target_sil_opt_mock_sdk = config.target_sil_opt
1860+
subst_target_sil_opt_mock_sdk_after = ""
18591861
config.target_swift_symbolgraph_extract = ' '.join([
18601862
config.swift_symbolgraph_extract,
18611863
'-target', config.variant_triple,
18621864
mcp_opt])
1865+
config.target_swift_api_extract = ' '.join([
1866+
config.swift_api_extract,
1867+
'-target', config.variant_triple,
1868+
'-sdk', shell_quote(config.variant_sdk)])
18631869
config.target_swift_ide_test = (
18641870
'%s -target %s %s %s %s %s' %
18651871
(config.swift_ide_test, config.variant_triple, config.resource_dir_opt,

0 commit comments

Comments
 (0)