From 134893adf344e8b694ec07e14b6fbc972a3122cb Mon Sep 17 00:00:00 2001 From: starr-openai Date: Wed, 13 May 2026 17:06:07 -0700 Subject: [PATCH] Fix MSVC lld wrapper compilation --- .github/actions/setup-msvc-env/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-msvc-env/action.yml b/.github/actions/setup-msvc-env/action.yml index 3c8a72d7c7..dc978fc5af 100644 --- a/.github/actions/setup-msvc-env/action.yml +++ b/.github/actions/setup-msvc-env/action.yml @@ -118,7 +118,7 @@ runs: $wrapperDir = Join-Path $env:RUNNER_TEMP "arm64-archive-lld-wrapper" New-Item -Path $wrapperDir -ItemType Directory -Force | Out-Null $wrapperPath = Join-Path $wrapperDir "lld-link-wrapper.exe" - @' + $wrapperSource = @' using System; using System.Diagnostics; @@ -156,7 +156,8 @@ internal static class Program return process.ExitCode; } } -'@ | Add-Type -Language CSharp -OutputAssembly $wrapperPath -OutputType ConsoleApplication +'@ + Add-Type -TypeDefinition $wrapperSource -Language CSharp -OutputAssembly $wrapperPath -OutputType ConsoleApplication "ARM64_ARCHIVE_REAL_LINKER=$linker" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append $linker = $wrapperPath }