mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 01:01:58 -05:00
Workaround: get msvc paths into PowerShell through intermediate file
This commit is contained in:
parent
a5739ea5f0
commit
1b0c19afd1
@ -60,7 +60,10 @@ before_build:
|
||||
$LINKER = "lld-link"
|
||||
# Workaround for lld bug with vcpkg integration
|
||||
if ((Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020) {
|
||||
$LINKER = "link" # MSVC-linker
|
||||
echo "Fallback to MSVC linker."
|
||||
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% && PATH > path.txt'
|
||||
$env:PATH = Get-Content .\path.txt
|
||||
$LINKER = "link"
|
||||
} else { echo "==> vcpkg has been updated, please remove the workaround from appvayor.yml." }
|
||||
# /Workaround
|
||||
clang-cl --version
|
||||
|
Loading…
Reference in New Issue
Block a user