mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
Meta: Re-enable toolchain version checks
These were removed in the Superbuild conversion. Re-add the checks that make sure that if there's a toolchain update, developers re-build their toolchain.
This commit is contained in:
parent
170a7e263c
commit
ba2ca54660
1 changed files with 14 additions and 0 deletions
|
@ -16,6 +16,20 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "SerenityOS")
|
||||||
"Please re-read the BuildInstructions documentation, and use the superbuild configuration\n")
|
"Please re-read the BuildInstructions documentation, and use the superbuild configuration\n")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Check for toolchain mismatch, user might need to rebuild toolchain
|
||||||
|
set(GCC_VERSION "11.2.0")
|
||||||
|
set(LLVM_VERSION "13.0.0")
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
set(EXPECTED_COMPILER_VERSION "${GCC_VERSION}")
|
||||||
|
else()
|
||||||
|
set(EXPECTED_COMPILER_VERSION "${LLVM_VERSION}")
|
||||||
|
endif()
|
||||||
|
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "${EXPECTED_COMPILER_VERSION}")
|
||||||
|
message(FATAL_ERROR "${CMAKE_CXX_COMPILER_ID} version (${CMAKE_CXX_COMPILER_VERSION}) does not match "
|
||||||
|
"expected compiler version (${EXPECTED_COMPILER_VERSION}).\n"
|
||||||
|
"Please rebuild the ${CMAKE_CXX_COMPILER_ID} Toolchain\n")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_INSTALL_MESSAGE NEVER)
|
set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue