Builds the main rustc_codegen_jvm backend.
()
| 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}") |