Install the pinned MSVC toolset from the Manager

Modules must be compiled by the core's exact compiler. The Toolchain tab now
offers Microsoft's stable-channel Build Tools bootstrapper (VS 18) with the
14.44 toolset, core build tools, Windows SDK 26100 and CMake preselected:
downloaded from aka.ms, Authenticode-checked for Microsoft, run in its own UI
(modify mode for an existing Build Tools 18). Shows the required and selected
cl.exe versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Opus 5.5 committed 2026-11-05 15:38:58 +05:00
1 parent da94fb49a4
commit 3be5fe9609
6 files changed
+213

No files matched your search

+11
View File
@@ -2964,6 +2964,16 @@ fn preview_toolchain_status(
coa_core::build_engine::detect_toolchain_for(realm_root.as_deref())
}
/// Runs Microsoft's Build Tools installer with the MSVC toolset this realm's core was built with.
#[tauri::command]
async fn preview_install_msvc(
state: State<'_, AppState>,
realm_id: Option<String>,
) -> std::result::Result<coa_core::msvc_setup::MsvcSetupOutcome, UiError> {
let realm_root = realm_id.and_then(|id| path_of(&state, &id).ok());
blocking(move || coa_core::msvc_setup::install_build_tools(realm_root.as_deref())).await
}
#[tauri::command]
async fn preview_register_test_realm(
state: State<'_, AppState>,
@@ -3380,6 +3390,7 @@ pub fn run() {
.invoke_handler(tauri::generate_handler![
release_history,
preview_toolchain_status,
preview_install_msvc,
preview_register_test_realm,
preview_build_module,
preview_install_module,