Skip to content

Commit cff9f75

Browse files
kateinoigakukunrunner
authored andcommitted
[wasm][test] Force static library to avoid unsupported shared library build
Linking libraries without `-static` flag produces unexpected main function reference error. This is because the linker is trying to link input objects as executable, not as library.
1 parent 0d0e09f commit cff9f75

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
@@ -1835,7 +1835,7 @@ elif run_os == 'wasi':
18351835
config.swift_driver_test_options, swift_execution_tests_extra_flags])
18361836
config.target_codesign = "echo"
18371837
config.target_build_swift_dylib = (
1838-
"%s -parse-as-library -emit-library -o '\\1'"
1838+
"%s -parse-as-library -emit-library -static -o '\\1'"
18391839
% (config.target_build_swift))
18401840
config.target_add_rpath = ''
18411841
config.target_swift_frontend = ' '.join([

0 commit comments

Comments
 (0)