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

Function build_rust_backend

build.py:198–211  ·  view source on GitHub ↗

Builds the main rustc_codegen_jvm backend.

()

Source from the content-addressed store, hash-verified

196 print(
197 f"{Colors.YELLOW}⚠️ javac --release 8 failed; retrying with -source 8 -target 8.{Colors.RESET}"
198 )
199 run_command(["javac", "-source", "8", "-target", "8"] + javac_base[1:] + source_paths)
200
201 run_command([
202 "jar",
203 "cf",
204 str(Config.RUNTIME_JAR),
205 "-C",
206 str(Config.RUNTIME_CLASSES_DIR),
207 ".",
208 ])
209
210 if not Config.RUNTIME_JAR.exists():
211 print(f"{Colors.RED}❌ Expected runtime JAR was not created: {Config.RUNTIME_JAR}{Colors.RESET}")
212 sys.exit(1)
213 if contains_non_runtime_classes(Config.RUNTIME_JAR):
214 print(f"{Colors.RED}❌ Java runtime JAR contains classes outside org.rustlang.runtime.{Colors.RESET}")

Callers 1

all_tasksFunction · 0.85

Calls 1

is_staleFunction · 0.85

Tested by

no test coverage detected