Skip to content

Override OS version possible? #275

@fzakaria

Description

@fzakaria

Hello!

I see it's possible to set llvm_versions per OS & Arch but I'm interested in forcing my OS version.
I work at Google and I'm on a fork of Debian that doesn't have any version identifier that can be used for detection.

Instead I'd like to force set the version based on which glibc I have available.
(Is that the only requirement for OS versions that needs to be checked?)

For reference:

❯ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux rodete"
NAME="Debian GNU/Linux rodete"
VERSION_CODENAME=rodete
ID=debian
HOME_URL="https://go/glinux"
SUPPORT_URL="https://go/techstop"
BUG_REPORT_URL="https://go/techstop"

I'm on /usr/lib/x86_64-linux-gnu/libc.so.6 FWIW.

The code at the moment defaults to 20.04 for my OS release because it has no VERSION_ID
https://github.com/bazel-contrib/toolchains_llvm/blob/master/toolchain/internal/release_name.bzl#L121

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions