[all-commits] [llvm/llvm-project] 905551: [clang] Add getClangVendor() and use it in CodeGen...
Dimitry Andric via All-commits
all-commits at lists.llvm.org
Wed Dec 20 11:03:32 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9055519103eadfba0b48810be926883a71890c55
https://github.com/llvm/llvm-project/commit/9055519103eadfba0b48810be926883a71890c55
Author: Dimitry Andric <dimitry at andric.com>
Date: 2023-12-20 (Wed, 20 Dec 2023)
Changed paths:
M clang/include/clang/Basic/Version.h
M clang/lib/Basic/Version.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
Log Message:
-----------
[clang] Add getClangVendor() and use it in CodeGenModule.cpp (#75935)
In 9a38a72f1d482 `ProductId` was assigned from the stringified value of
`CLANG_VENDOR`, if that macro was defined. However, `CLANG_VENDOR` is
supposed to be a string, as it is defined (optionally) as such in the
top-level clang `CMakeLists.txt`.
Move the addition of `-DCLANG_VENDOR` to the compiler flags from
`clang/lib/Basic/CMakeLists.txt` to the top-level `CMakeLists.txt`, so
it is consistent across the whole clang codebase. Then remove the
stringification from `CodeGenModule.cpp`, to make it work correctly.
Fixes: 9a38a72f1d482
More information about the All-commits
mailing list