Skip to content
Snippets Groups Projects
Commit aec0393e authored by Georgiy Lebedev's avatar Georgiy Lebedev Committed by Vladimir Davydov
Browse files

build: store compiler ID and version in `COMPILER_INFO`

Currently, `tarantool.build.compiler` stores the `CMAKE_C_COMPILER` and
`CMAKE_CXX_COMPILER` strings from CMake, which are basically paths to the
compiler used for build, and are usually set to `/usr/bin/cc` and
`/usr/bin/c++` accordingly, which does not yield any useful information:
instead, set it to `${CMAKE_C_COMPILER_ID}-${CMAKE_C_COMPILER_VERSION}`,
assuming the same compiler is used for building C and C++.

Closes #7888

@TarantoolBot document
Title: change of information shown in compiler information
Compiler information provided by `tarantool --version` and
`tarantool.build.compiler` now show
`${CMAKE_C_COMPILER_ID}-${CMAKE_C_COMPILER_VERSION}` instead of paths to C
and C++ compilers used to build tarantool, for instance:

```console
tarantool> tarantool.build.compiler

---
- Clang-14.0.0.14000029
...

tarantool> tarantool.build.compiler

---
- GNU-12.2.0
...
```
parent 41c7db41
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment