MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / discover

Method discover

xtask/src/main.rs:7279–7334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7277
7278impl BuildOutputs {
7279 fn discover() -> Result<Self> {
7280 let build_dir = PathBuf::from(WASIX_DOCKER_BUILD_DIR);
7281 let source_dir = PathBuf::from(WASIX_PATCHED_SOURCE_DIR);
7282 let package_stage = PathBuf::from(WASIX_BUILD_ROOT).join("build/package-stage");
7283 let mut modules = vec![
7284 BuildModuleOutput {
7285 name: "runtime:pglite".to_owned(),
7286 kind: "runtime".to_owned(),
7287 path: build_dir.join("src/backend/pglite"),
7288 aot_file: "pglite-llvm-opta.bin.zst".to_owned(),
7289 },
7290 BuildModuleOutput {
7291 name: "runtime-support:plpgsql".to_owned(),
7292 kind: "runtime-support".to_owned(),
7293 path: build_dir.join("src/pl/plpgsql/src/plpgsql.so"),
7294 aot_file: "plpgsql-llvm-opta.bin.zst".to_owned(),
7295 },
7296 BuildModuleOutput {
7297 name: "runtime-support:dict_snowball".to_owned(),
7298 kind: "runtime-support".to_owned(),
7299 path: build_dir.join("src/backend/snowball/dict_snowball.so"),
7300 aot_file: "dict_snowball-llvm-opta.bin.zst".to_owned(),
7301 },
7302 BuildModuleOutput {
7303 name: "tool:pg_dump".to_owned(),
7304 kind: "tool".to_owned(),
7305 path: build_dir.join("src/bin/pg_dump/pg_dump"),
7306 aot_file: "pg_dump-llvm-opta.bin.zst".to_owned(),
7307 },
7308 BuildModuleOutput {
7309 name: "tool:initdb".to_owned(),
7310 kind: "tool".to_owned(),
7311 path: build_dir.join("src/bin/initdb/initdb"),
7312 aot_file: "initdb-llvm-opta.bin.zst".to_owned(),
7313 },
7314 ];
7315 for extension in extension_catalog::promoted_build_specs()? {
7316 if extension.module_file.is_some() {
7317 modules.push(BuildModuleOutput {
7318 name: format!("extension:{}", extension.sql_name),
7319 kind: "extension".to_owned(),
7320 path: extension_build_module_path(&build_dir, &extension)?,
7321 aot_file: format!("{}-llvm-opta.bin.zst", extension_aot_file_stem(&extension)),
7322 });
7323 }
7324 }
7325
7326 let outputs = Self {
7327 build_dir,
7328 source_dir,
7329 package_stage,
7330 modules,
7331 };
7332 outputs.ensure_required_files()?;
7333 Ok(outputs)
7334 }
7335
7336 fn discover_for_aot() -> Result<Self> {

Callers

nothing calls this directly

Calls 5

promoted_build_specsFunction · 0.85
pushMethod · 0.80
ensure_required_filesMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected