[llvm-dev] Understanding the version handling in LLVM/Clang/LLD (original) (raw)

Sedat Dilek via llvm-dev llvm-dev at lists.llvm.org
Wed May 27 09:42:54 PDT 2020


On Wed, May 27, 2020 at 6:13 PM Sedat Dilek <sedat.dilek at gmail.com> wrote:

I have downloaded the llvm-toolchain from [1]: dileks at iniza:~/src/llvm-toolchain/clang+llvm-10.0.1-rc1-x8664-pc-linux-gnu/bin$ ./clang-10 -v clang version 10.0.1 (https://github.com/llvm/llvm-project.git 01636c1eeace5371fef8508c7318df9d7a25b489) Target: x8664-unknown-linux-gnu Thread model: posix InstalledDir: /home/dileks/src/llvm-toolchain/clang+llvm-10.0.1-rc1-x8664-pc-linux-gnu/bin/. Found candidate GCC installation: /usr/lib/gcc/x8664-linux-gnu/10 Found candidate GCC installation: /usr/lib/gcc/x8664-linux-gnu/8 Found candidate GCC installation: /usr/lib/gcc/x8664-linux-gnu/9 Selected GCC installation: /usr/lib/gcc/x8664-linux-gnu/10 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Candidate multilib: x32;@mx32 Selected multilib: .;@m64 dileks at iniza:~/src/llvm-toolchain/clang+llvm-10.0.1-rc1-x8664-pc-linux-gnu/bin$ ./ld.lld -v LLD 10.0.1 (https://github.com/llvm/llvm-project.git 01636c1eeace5371fef8508c7318df9d7a25b489) (compatible with GNU linkers) What is that for a commit-hash-id? Even on master Git branch: $ git describe --contains 01636c1eeace5371fef8508c7318df9d7a25b489 fatal: cannot describe '01636c1eeace5371fef8508c7318df9d7a25b489' $ git describe --contains f79cd71e145c6fd005ba4dd1238128dfa0dc2cb6 llvmorg-10.0.1-rc1 Last commit in release/10.x before llvmorg-10.0.1-rc1 was tagged: "[arm] Add big-endian version of pcrel fixups for adr instructions" Commit-hash-id of the tag? - Sedat - [1] https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1-rc1/clang+llvm-10.0.1-rc1-x8664-pc-linux-gnu.tar.xz [2] https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1-rc1/clang+llvm-10.0.1-rc1-x8664-pc-linux-gnu.tar.xz.sig [3] https://github.com/llvm/llvm-project/commit/f79cd71e145c6fd005ba4dd1238128dfa0dc2cb6

Hmm,

$ git show-ref --tags | grep 10.0.1-rc1 f79cd71e145c6fd005ba4dd1238128dfa0dc2cb6 refs/tags/llvmorg-10.0.1-rc1

$ ./clang-10 -v | grep Target clang version 10.0.1 (https://github.com/llvm/llvm-project.git 01636c1eeace5371fef8508c7318df9d7a25b489) Target: x86_64-unknown-linux-gnu

The tarball name says clang+llvm-10.0.1-rc1-x86_64-pc-linux-gnu.tar.xz but it's "Target: x86_64-unknown-linux-gnu".



More information about the llvm-dev mailing list