Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bootstrap.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ echo Tools can be found at http://llvm.org/releases/download.html#3.8.0

:: Download clang-format and clang-tidy
echo Downloading formatting tools

echo Downloading clang-format from "https://clrjit.blob.core.windows.net/clang-tools/windows/clang-format.exe"
call :download_url clang-format "https://clrjit.blob.core.windows.net/clang-tools/windows/clang-format.exe" bin\clang-format.exe
if %__ExitCode% NEQ 0 goto :eof

echo Downloading clang-tidy from "https://clrjit.blob.core.windows.net/clang-tools/windows/clang-tidy.exe"
call :download_url clang-tidy "https://clrjit.blob.core.windows.net/clang-tools/windows/clang-tidy.exe" bin\clang-tidy.exe
if %__ExitCode% NEQ 0 goto :eof

Expand Down
5 changes: 3 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function validate_url {
status="${response[1]}"
fi

echo "validate_url status: $status"
if (( status >= 200 || status < 400 )); then
return 0;
else
Expand Down Expand Up @@ -90,7 +91,7 @@ function download_tools {
clangFormatUrl=https://clrjit.blob.core.windows.net/clang-tools/${info}/clang-format

if validate_url "$clangFormatUrl" > /dev/null; then
echo "Downloading clang-format to bin directory"
echo "Downloading clang-format to bin directory from: $clangFormatUrl"
# download appropriate version of clang-format
if (( _machineHasCurl == 1 )); then
curl --retry 4 --progress-bar --location --fail "$clangFormatUrl" -o bin/clang-format
Expand All @@ -105,7 +106,7 @@ function download_tools {
clangTidyUrl=https://clrjit.blob.core.windows.net/clang-tools/${info}/clang-tidy

if validate_url "$clangTidyUrl" > /dev/null; then
echo "Downloading clang-tidy to bin directory"
echo "Downloading clang-tidy to bin directory from: $clangTidyUrl"
# download appropriate version of clang-tidy
if (( _machineHasCurl == 1 )); then
curl --retry 4 --progress-bar --location --fail "$clangTidyUrl" -o bin/clang-tidy
Expand Down