[all-commits] [llvm/llvm-project] 3a3603: [clang] Replace BACKEND_PACKAGE_STRING with LLVM_V...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Oct 25 00:24:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a3603ff99ffd7dd7c8d166ba6d15078e33a5f71
https://github.com/llvm/llvm-project/commit/3a3603ff99ffd7dd7c8d166ba6d15078e33a5f71
Author: Fangrui Song <i at maskray.me>
Date: 2022-10-25 (Tue, 25 Oct 2022)
Changed paths:
M clang/CMakeLists.txt
M clang/cmake/modules/AddClang.cmake
M clang/include/clang/Config/config.h.cmake
M clang/lib/Frontend/CompilerInstance.cpp
M llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
M llvm/utils/release/bump-version.py
M utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h
Log Message:
-----------
[clang] Replace BACKEND_PACKAGE_STRING with LLVM_VERSION_STRING
420d7ccbac0f499a6ff9595bdbfa99cd3376df22 introduced BACKEND_PACKAGE_STRING to
replace `PACKAGE_VERSION` (llvm/Config/config.h) to support standalone builds.
This is used in the output of `clang -cc1 -v`.
Since llvm-config.h is available for both standalone and non-standalone builds,
we can just use `LLVM_VERSION_STRING` from llvm-config.h.
clang/cmake/modules/AddClang.cmake uses `VERSION_STRING "${CLANG_VERSION} (${BACKEND_PACKAGE_STRING})"`.
Just simplify it to `"${CLANG_VERSION}"` so that we can remove the CMake
variable BACKEND_PACKAGE_STRING.
Reviewed By: tstellar
Differential Revision: https://reviews.llvm.org/D136660
More information about the All-commits
mailing list