MCPcopy Create free account
hub / github.com/bytecodealliance/wasm-component-ld / linker_flags

Function linker_flags

tests/all.rs:154–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153#[test]
154fn linker_flags() {
155 let output = compile(
156 &[
157 "-Clink-arg=--max-memory=65536",
158 "-Clink-arg=-zstack-size=32",
159 "-Clink-arg=--global-base=2048",
160 "-Clink-arg=--append-lld-flag=--no-merge-data-segments",
161 ],
162 r#"
163fn main() {
164}
165 "#,
166 );
167 assert_component(&output);
168
169 let output = compile(
170 &[
171 "-Clink-arg=--max-memory=65536",
172 "-Clink-arg=-zstack-size=32",
173 "-Clink-arg=--global-base=2048",
174 "-Clink-arg=--append-lld-flag=--no-merge-data-segments",
175 "-Clink-arg=-allow-multiple-definition",
176 "-Clink-arg=-soname",
177 "-Clink-arg=foo",
178 ],
179 r#"
180fn main() {
181}
182 "#,
183 );
184 assert_component(&output);
185}
186
187#[test]
188fn invalid_lld_flag() {

Callers

nothing calls this directly

Calls 2

compileFunction · 0.85
assert_componentFunction · 0.85

Tested by

no test coverage detected