dotnet / dotnet/jitutils

Update clang-tidy and clang-format to newer versions and upload binaries for macOS arm64

Open
#352 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
160
Forks
69
Avg merge
1h 56m
Merged PRs (30d)
1

Description

Right now running `bootstrap.sh` on macOS arm64 will fail with the following output:
```
Downloading clang-format to bin directory
curl: (22) The requested URL returned error: 404

chmod: bin/clang-format: No such file or directory
Downloading clang-tidy to bin directory
curl: (22) The requested URL returned error: 404

chmod: bin/clang-tidy: No such file or directory
Either clang-tidy or clang-format was not installed. Please install and put them on the PATH to use jit-format.
Tools can be found at http://llvm.org/releases/download.html#3.8.0
ERROR: Failed to download clang-format and clang-tidy
```

The easiest way to fix the issue would be to upload clang-tidy and clang-format from the official LLVM releases.
However, https://github.com/llvm/llvm-project/releases/tag/llvmorg-13.0.1 doesn't contain any native tools for macOS arm64.

As a workaround, another pipeline (similar to coredistools) can be added to the repo that will produce clang-tidy and clang-format binaries on demand.

cc @BruceForstall

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.