(target: &str)
| 8090 | } |
| 8091 | |
| 8092 | fn generate_aot_artifacts(target: &str) -> Result<()> { |
| 8093 | let outputs = BuildOutputs::discover_for_aot()?; |
| 8094 | let source_dir = Path::new("assets/wasix-build/build/aot").join(target); |
| 8095 | fs::create_dir_all(&source_dir).with_context(|| format!("create {}", source_dir.display()))?; |
| 8096 | let serializer = ensure_aot_serializer_binary()?; |
| 8097 | |
| 8098 | for module in &outputs.modules { |
| 8099 | let output = source_dir.join(&module.aot_file); |
| 8100 | generate_one_aot_artifact(&serializer, &module.path, &output)?; |
| 8101 | } |
| 8102 | Ok(()) |
| 8103 | } |
| 8104 | |
| 8105 | fn package_aot_only(manifest: &SourcesManifest, target: &str) -> Result<()> { |
| 8106 | let outputs = BuildOutputs::discover_for_aot()?; |
no test coverage detected