Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tools/jit/_llvm.py doesn't support LLVM_VERSION_SUFFIX #120602

Closed
Labels
buildThe build process and cross-buildtopic-JITtype-bugAn unexpected behavior, bug, or error
@xarblu

Description

@xarblu

Bug report

Bug description:

I initially encounteredthis build issue on Gentoo.

Currently the regex inTools/jit/_llvm.py only allows strings of the formversion MAJOR.MINOR.PATCH

_LLVM_VERSION_PATTERN=re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\s+")

However if LLVM was built with e.g.-DLLVM_VERSION_SUFFIX=+libcxx (as is the case on Gentoo)clang --version would returnclang version 18.1.7+libcxx which is a valid version but doesn't match.

My proposed fix would be to simply allow a non-whitespace string of arbitrary length after the version, i.e.:

_LLVM_VERSION_PATTERN=re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtopic-JITtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp