mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
Build: Provide the user with a nice message after Toolchain upgrade
Lots of people are confused by the error message you get when the Toolchain is behind/messed up: 'initializer-list: No such file or directory' Before this error can happen, catch the problem at CMake configure time, and provide them with an actionable error message.
This commit is contained in:
parent
2ef93a3c07
commit
b970dbf2af
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/bgianfo
Commit: b970dbf2af
Pull-request: https://github.com/SerenityOS/serenity/pull/6683
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sin-ack
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ file(GENERATE OUTPUT linker.ld INPUT linker.ld)
|
|||
if (${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
|
||||
include_directories(/usr/local/include/c++/${GCC_VERSION}/)
|
||||
else()
|
||||
if (NOT EXISTS ${TOOLCHAIN_ROOT}/Kernel/${SERENITY_ARCH}-pc-serenity/include/c++/${GCC_VERSION}/)
|
||||
message(SEND_ERROR "Toolchain version ${GCC_VERSION} appears to be missing! Please run: Meta/serenity.sh rebuild-toolchain")
|
||||
endif()
|
||||
include_directories(${TOOLCHAIN_ROOT}/Kernel/${SERENITY_ARCH}-pc-serenity/include/c++/${GCC_VERSION}/)
|
||||
include_directories(${TOOLCHAIN_ROOT}/Kernel/${SERENITY_ARCH}-pc-serenity/include/c++/${GCC_VERSION}/${SERENITY_ARCH}-pc-serenity/)
|
||||
link_directories(${TOOLCHAIN_ROOT}/Kernel/${SERENITY_ARCH}-pc-serenity/lib)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue