diff options
| author | Noah <33094578+coolreader18@users.noreply.github.com> | 2020-12-12 21:38:23 -0600 |
|---|---|---|
| committer | Noah <33094578+coolreader18@users.noreply.github.com> | 2021-01-08 13:09:40 -0600 |
| commit | 92d3537abb36a1c8c269fc96b9a962be40745a99 (patch) | |
| tree | cb6d2bb6ff16a6e6b77e48d4d7abc4b4d301c578 /src | |
| parent | 7efc097c4fe6e97f54a44cee91c56189e9ddb41c (diff) | |
| download | rust-92d3537abb36a1c8c269fc96b9a962be40745a99.tar.gz rust-92d3537abb36a1c8c269fc96b9a962be40745a99.zip | |
Add wasi-exec-model cg option for emitting wasi reactors
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/compile.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index cdad1cb4d49..c142c43c98d 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -187,14 +187,16 @@ fn copy_self_contained_objects( } } else if target.ends_with("-wasi") { let srcdir = builder.wasi_root(target).unwrap().join("lib/wasm32-wasi"); - copy_and_stamp( - builder, - &libdir_self_contained, - &srcdir, - "crt1.o", - &mut target_deps, - DependencyType::TargetSelfContained, - ); + for &obj in &["crt1.o", "crt1-reactor.o"] { + copy_and_stamp( + builder, + &libdir_self_contained, + &srcdir, + obj, + &mut target_deps, + DependencyType::TargetSelfContained, + ); + } } else if target.contains("windows-gnu") { for obj in ["crt2.o", "dllcrt2.o"].iter() { let src = compiler_file(builder, builder.cc(target), target, obj); |
