[PR #4841] [MERGED] Launcher: native builds open no console window on Windows #5885

Closed
opened 2026-11-03 05:15:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4841
Author: @ludovic111
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/native-build-no-console


📝 Commits (1)

  • 4ecf521 Launcher: native builds open no console window on Windows

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 launcher/src/rust_toolchain.rs (+4 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Part of #4770. Windows players reported a blank cmd window that stays open for the whole native build.

The launcher is a GUI program (windows_subsystem = "windows"). cargo, horizon-mixins and rustc --version are console programs, so Windows gave each one a new console window. rust_toolchain::Toolchain::command now starts them through process::command, which adds CREATE_NO_WINDOW like the launcher's other background programs. What cargo starts (rustc, gcc, dlltool) shares cargo's hidden console. Output still goes to native/build.log and to the progress line, as before.

Not changed here: the build time (~25 min on the first build, release profile with LTO). levzzz5154's #4590 switches native builds to the fast profile and shows build progress.

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 9510efd2f, 1 min 47 s)

Check Result
Scope ✅ 1 files, +4 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (1 min 25 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (7 s)
launcher tests ✅ 300 passed (15 s)
Parity ➖ 1 affected, to run in CI (no vanilla data here): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4841 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/native-build-no-console` --- ### 📝 Commits (1) - [`4ecf521`](https://github.com/horizon-rust/horizon/commit/4ecf5211952dab9648ca7085272fd365e832e1e3) Launcher: native builds open no console window on Windows ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/rust_toolchain.rs` (+4 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #4770. Windows players reported a blank cmd window that stays open for the whole native build. The launcher is a GUI program (`windows_subsystem = "windows"`). cargo, horizon-mixins and `rustc --version` are console programs, so Windows gave each one a new console window. `rust_toolchain::Toolchain::command` now starts them through `process::command`, which adds `CREATE_NO_WINDOW` like the launcher's other background programs. What cargo starts (rustc, gcc, dlltool) shares cargo's hidden console. Output still goes to `native/build.log` and to the progress line, as before. Not changed here: the build time (~25 min on the first build, release profile with LTO). levzzz5154's #4590 switches native builds to the `fast` profile and shows build progress. **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 9510efd2f, 1 min 47 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +4 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (1 min 25 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (7 s) | | launcher tests | ✅ 300 passed (15 s) | | Parity | ➖ 1 affected, to run in CI (no vanilla data here): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5885
No description provided.