Skip to content

Commit 26fbf94

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 aa3b562 commit 26fbf94

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

0 commit comments

Comments
 (0)