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 ... ``` (cherry picked from commit aec0393e)
Showing
- changelogs/unreleased/gh-7888-store-compiler-id-and-version-in-compiler-info.md 5 additions, 0 deletions...gh-7888-store-compiler-id-and-version-in-compiler-info.md
- src/trivia/config.h.cmake 2 additions, 2 deletionssrc/trivia/config.h.cmake
- test/app-luatest/gh_7888_store_compiler_id_and_version_in_compiler_info_test.lua 10 additions, 0 deletions...8_store_compiler_id_and_version_in_compiler_info_test.lua
Loading
Please register or sign in to comment