Skip to content

Commit 670c731

Browse files
[test] Pass wasi-sysroot to the %target-clang
`test/IRGen/sensitive.swift` failed on the WebAssembly bot because it tries to include stdio.h, but `--sysroot` was not passed to the `%target-clang`.
1 parent f0d3ca8 commit 670c731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,8 @@ elif run_os == 'wasi':
19391939
'%s -emit-pcm -target %s' %
19401940
(config.swiftc, config.variant_triple))
19411941
config.target_clang = (
1942-
"%s -target %s %s -fobjc-runtime=ios-5.0" %
1943-
(config.clang, config.variant_triple, clang_mcp_opt))
1942+
"%s -target %s %s -fobjc-runtime=ios-5.0 --sysroot %s" %
1943+
(config.clang, config.variant_triple, clang_mcp_opt, config.variant_sdk))
19441944
config.target_ld = (
19451945
"%s -L%r" %
19461946
(config.wasm_ld, make_path(test_resource_dir, config.target_sdk_name)))

0 commit comments

Comments
 (0)