MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / all_tasks

Function all_tasks

build.py:245–258  ·  view source on GitHub ↗

Runs all necessary build tasks in the correct order.

()

Source from the content-addressed store, hash-verified

243def build_java_linker():
244 """Builds the java-linker subproject."""
245 if not is_stale(Config.JAVA_LINKER_EXE, Config.LINKER_RUST_SOURCES):
246 print(f"{Colors.GREEN}✅ Java linker is up to date.{Colors.RESET}")
247 return
248
249 print(f"{Colors.CYAN}📦 Building Java linker...{Colors.RESET}")
250 env = os.environ.copy()
251 env["RUSTFLAGS"] = "-Awarnings"
252 subprocess.run(["cargo", "build", "--release"], cwd=Config.JAVA_LINKER_DIR, check=True, env=env)
253 print(f"{Colors.GREEN} Java linker built successfully.{Colors.RESET}")
254
255def build_cargo_jvm():
256 """Builds the cargo-jvm Cargo subcommand."""
257 if not is_stale(Config.CARGO_JVM_EXE, Config.CARGO_JVM_RUST_SOURCES):
258 print(f"{Colors.GREEN}✅ cargo-jvm is up to date.{Colors.RESET}")
259 return
260
261 print(f"{Colors.CYAN}📦 Building cargo-jvm...{Colors.RESET}")

Callers

nothing calls this directly

Calls 6

install_rust_componentsFunction · 0.85
generate_config_filesFunction · 0.85
build_libraryFunction · 0.85
generate_shim_metadataFunction · 0.85
build_rust_backendFunction · 0.85
build_java_linkerFunction · 0.85

Tested by

no test coverage detected