mirror of
https://github.com/openai/codex.git
synced 2026-05-15 08:42:34 +00:00
Probe ARM64 archive with lld-link
This commit is contained in:
8
.github/scripts/setup-dev-drive.ps1
vendored
8
.github/scripts/setup-dev-drive.ps1
vendored
@@ -81,11 +81,15 @@ function Export-MsvcEnvironment {
|
||||
throw "VCToolsInstallDir was not exported by VsDevCmd.bat"
|
||||
}
|
||||
|
||||
$linker = Join-Path $vcToolsInstallDir "bin\HostX64\$TargetArch\link.exe"
|
||||
$linker = Join-Path $installPath "VC\Tools\Llvm\x64\bin\lld-link.exe"
|
||||
if (-not (Test-Path $linker)) {
|
||||
throw "MSVC linker not found at $linker"
|
||||
$linker = Join-Path $vcToolsInstallDir "bin\HostX64\$TargetArch\link.exe"
|
||||
}
|
||||
if (-not (Test-Path $linker)) {
|
||||
throw "Windows linker not found at $linker"
|
||||
}
|
||||
|
||||
Write-Output "Using Windows linker: $linker"
|
||||
"CARGO_TARGET_AARCH64_PC_WINDOWS_MSVC_LINKER=$linker" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user