From 8f0535c8cbaafa9ad843f7b2e34f95b7dd834054 Mon Sep 17 00:00:00 2001 From: doylet Date: Wed, 7 Jun 2023 13:20:04 +1000 Subject: [PATCH] Use installed MSVC --- install.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.py b/install.py index 244df67..4dc2001 100644 --- a/install.py +++ b/install.py @@ -271,8 +271,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then clink_exe = string.format("%s\\\\..\\\\..\\\\{clink_exe_path_for_wezterm}", wezterm.executable_dir) devenv_bat = string.format("%s\\\\..\\\\..\\\\{dev_env_script_name}.bat", wezterm.executable_dir) - msvc_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\msvc-{msvc_version}.bat", wezterm.executable_dir) - win10_sdk_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\win-sdk-{win10_sdk_version}.bat", wezterm.executable_dir) + msvc_bat = "C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat" clink_profile = string.format("%s\\\\..\\\\..\\\\{clink_profile_path_for_wezterm}", wezterm.executable_dir) -- Taken from: https://wezfurlong.org/wezterm/shell-integration.html @@ -283,8 +282,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then default_prog = {{"cmd.exe", "/s", "/k", clink_exe, "inject", "--profile", clink_profile, "-q", "&&", "call", devenv_bat, - "&&", "call", msvc_bat, - "&&", "call", win10_sdk_bat}} + "&&", "call", msvc_bat, "x64"}} end return {{