another shot at wrapping stdout
This commit is contained in:
parent
eb8690b8dc
commit
a98d723977
2 changed files with 6 additions and 6 deletions
|
@ -16,12 +16,12 @@ Set-PSDebug -Trace 1
|
|||
|
||||
if (Test-Path -PathType Container .git){
|
||||
Write-Output "performing git pull..."
|
||||
git checkout master 2>&1
|
||||
git reset --hard 2>&1
|
||||
git clean -fdx 2>&1
|
||||
git pull 2>&1
|
||||
git checkout master 2>&1 | %{ "$_" }
|
||||
git reset --hard 2>&1 | %{ "$_" }
|
||||
git clean -fdx 2>&1 | %{ "$_" }
|
||||
git pull 2>&1 | %{ "$_" }
|
||||
# TODO: in case of errors: delete folder and clone
|
||||
} else {
|
||||
Write-Output "performing git clone..."
|
||||
git clone -q --depth 1 https://github.com/llvm/llvm-project 2>&1
|
||||
git clone -q --depth 1 https://github.com/llvm/llvm-project 2>&1 | %{ "$_" }
|
||||
}
|
|
@ -21,7 +21,7 @@ Push-Location build
|
|||
Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
|
||||
|
||||
# Invoke-Call -ScriptBlock {
|
||||
cmake ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -D LLVM_ENABLE_ASSERTIONS=ON -DLLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml" -D LLVM_ENABLE_DIA_SDK=OFF --trace 2>&1
|
||||
cmake ..\llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -D LLVM_ENABLE_ASSERTIONS=ON -DLLVM_LIT_ARGS="-v --xunit-xml-output test-results.xml" -D LLVM_ENABLE_DIA_SDK=OFF --trace 2>&1 | %{ "$_" }
|
||||
#} -ErrorAction Stop
|
||||
|
||||
# LLVM_ENABLE_DIA_SDK=OFF is a workaround to make the tests pass.
|
||||
|
|
Loading…
Reference in a new issue