Skip to content

Commit b2610c0

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 0caac48 commit b2610c0

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
@@ -1597,7 +1597,7 @@ elif run_os == 'wasi':
15971597
config.swift_driver_test_options, swift_execution_tests_extra_flags])
15981598
config.target_codesign = "echo"
15991599
config.target_build_swift_dylib = (
1600-
"%s -parse-as-library -emit-library -o '\\1'"
1600+
"%s -parse-as-library -emit-library -static -o '\\1'"
16011601
% (config.target_build_swift))
16021602
config.target_add_rpath = ''
16031603
config.target_swift_frontend = ' '.join([

0 commit comments

Comments
 (0)