Skip to content

Commit 09dc7ec

Browse files
kateinoigakukunAnka
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 7bc4650 commit 09dc7ec

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
@@ -1879,7 +1879,7 @@ elif run_os == 'wasi':
18791879
config.swift_driver_test_options, swift_execution_tests_extra_flags])
18801880
config.target_codesign = "echo"
18811881
config.target_build_swift_dylib = (
1882-
"%s -parse-as-library -emit-library -o '\\1'"
1882+
"%s -parse-as-library -emit-library -static -o '\\1'"
18831883
% (config.target_build_swift))
18841884
config.target_add_rpath = ''
18851885
config.target_swift_frontend = ' '.join([

0 commit comments

Comments
 (0)