Builds the java-linker subproject.
()
| 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}") |
| 215 | sys.exit(1) |
| 216 | |
| 217 | print(f"{Colors.GREEN} Java runtime built successfully.{Colors.RESET}") |
| 218 | |
| 219 | def build_rust_backend(): |
| 220 | """Builds the main rustc_codegen_jvm backend.""" |
| 221 | sources = Config.BACKEND_RUST_SOURCES |
| 222 | toolchain = rustc_toolchain_fingerprint() |
| 223 | recorded_toolchain = ( |
| 224 | Config.RUST_BACKEND_TOOLCHAIN.read_text() |
| 225 | if Config.RUST_BACKEND_TOOLCHAIN.exists() |
| 226 | else None |