Skip to content

Add LLVM 20.1.0 #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Add LLVM 20.1.0 #469

merged 1 commit into from
Mar 6, 2025

Conversation

AlexDenisov
Copy link
Contributor

It was released just yesterday, so not all binaries are available yet.

Happy to wait and update the PR when more artifacts are available if it is too soon 😄

@fmeum fmeum enabled auto-merge (squash) March 6, 2025 09:30
@fmeum fmeum merged commit 14eb901 into bazel-contrib:master Mar 6, 2025
35 checks passed
@AlexDenisov AlexDenisov deleted the llvm-20.1.0 branch March 6, 2025 09:54
@mering
Copy link
Contributor

mering commented Mar 11, 2025

@fmeum Can we have a new release including this addition?

@AlexDenisov
Copy link
Contributor Author

@mering while the new release would certainly be appreciated, you can use the snippet below to get access to this change:

bazel_dep(name = "toolchains_llvm", version = "1.3.0")
git_override(
    module_name = "toolchains_llvm",
    commit = "14eb90172b3c5f35bdb2699d006fe0f70e76aa24",
    remote = "https://github.com/bazel-contrib/toolchains_llvm",
)
# ...
llvm.toolchain(
    llvm_version = "20.1.0",
)

@mering
Copy link
Contributor

mering commented Mar 11, 2025

@AlexDenisov Thanks but since we ship our module to customers, we are not the root module and therefore cannot use overrides.

@helly25
Copy link
Contributor

helly25 commented Mar 11, 2025

@mering Instead of commit override and simple version config you can suggest a detailed config. The following specifies just the Linux X86 and MacOS Arm64 (not how we state 'darwin-aarch64'), but other platforms can be added by providing them in sha256, strip_prefix and urls.

llvm.toolchain(
    name = "llvm_toolchain_llvm",
    llvm_version = "20.1.0",
    sha256 = {
        "linux-x86_64": "954ac51498519f6ed9540714fb04bc401f70039b296a8160dd1559be380788d7",
        "darwin-aarch64": "2c42ec26ec50c4bf8b95585f762b9d2f5b385d170dee772d9c1d6c9a7190dcef",
    },
    strip_prefix = {
        "linux-x86_64": "LLVM-20.1.0-Linux-X64",
        "darwin-aarch64": "LLVM-20.1.0-macOS-ARM64",
    },
    urls = {
        "linux-x86_64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.0/LLVM-20.1.0-Linux-X64.tar.xz"],
        "darwin-aarch64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.0/LLVM-20.1.0-macOS-ARM64.tar.xz"],
    },
)

@fmeum I still would prefer an actual new version :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants