Skip to content

Commit b9211a1

Browse files
test: fix dylib builder for wasm32 to avoid unexpected main reference
Without -static, driver tries to link objects instead of archive
1 parent d10a5e6 commit b9211a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ elif run_os == 'wasi':
15381538
config.swift_driver_test_options, swift_execution_tests_extra_flags])
15391539
config.target_codesign = "echo"
15401540
config.target_build_swift_dylib = (
1541-
"%s -parse-as-library -emit-library -o '\\1'"
1541+
"%s -parse-as-library -emit-library -static -o '\\1'"
15421542
% (config.target_build_swift))
15431543
config.target_add_rpath = ''
15441544
config.target_swift_frontend = ' '.join([

0 commit comments

Comments
 (0)