Skip to content

Commit 6eb4d25

Browse files
kateinoigakukunrunner
authored andcommitted
[wasm][test] Prefer -sdk instead of -Xcc --sysroot
1 parent 3346fd0 commit 6eb4d25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/lit.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,9 +1840,8 @@ elif run_os == 'wasi':
18401840
config.target_build_swift = ' '.join([
18411841
config.swiftc,
18421842
'-target', config.variant_triple,
1843-
'-Xcc', '--sysroot=%s' % config.variant_sdk,
1844-
'-Xclang-linker', '--sysroot=%s' % config.variant_sdk,
1845-
'-toolchain-stdlib-rpath', config.resource_dir_opt,
1843+
'-sdk', config.variant_sdk,
1844+
'-toolchain-stdlib-rpath', config.resource_dir_opt,
18461845
mcp_opt, config.swift_test_options,
18471846
config.swift_driver_test_options, swift_execution_tests_extra_flags])
18481847
config.target_codesign = "echo"
@@ -1853,7 +1852,7 @@ elif run_os == 'wasi':
18531852
config.target_swift_frontend = ' '.join([
18541853
config.swift_frontend,
18551854
'-target', config.variant_triple,
1856-
'-Xcc', '--sysroot=%s' % config.variant_sdk,
1855+
'-sdk', config.variant_sdk,
18571856
config.resource_dir_opt, mcp_opt,
18581857
config.swift_test_options, config.swift_frontend_test_options])
18591858
subst_target_swift_frontend_mock_sdk = config.target_swift_frontend

0 commit comments

Comments
 (0)