mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
Meta: Convert build directory path to be completely absolute
This commit is contained in:
parent
7fd0035600
commit
4b305e8fe4
Notes:
sideshowbarker
2024-07-17 05:02:58 +09:00
Author: https://github.com/Jan200101
Commit: 4b305e8fe4
Pull-request: https://github.com/SerenityOS/serenity/pull/15434
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/timschumi ✅
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ if(NOT SERENITY_TOOLCHAIN STREQUAL "GNU")
|
|||
endif()
|
||||
set(SERENITY_BUILD_DIR "${PROJECT_BINARY_DIR}/../${SERENITY_ARCH}${SERENITY_BUILD_DIR_SUFFIX}")
|
||||
|
||||
# Pkgconf incorrectly discards a sysroot if it doesn't match the start of the path to the
|
||||
# library file. To avoid that, resolve our sysroot into an absolute and canonical path
|
||||
# that matches pkgconf's result for resolving the library file.
|
||||
get_filename_component(SERENITY_BUILD_DIR "${SERENITY_BUILD_DIR}" ABSOLUTE)
|
||||
|
||||
# TODO: Figure out if and how we can skip this when building on Serenity.
|
||||
configure_file("${SERENITY_SOURCE_DIR}/Toolchain/CMake/${SERENITY_TOOLCHAIN}Toolchain.txt.in" "${SERENITY_BUILD_DIR}/CMakeToolchain.txt" @ONLY)
|
||||
set(SERENITY_TOOLCHAIN_FILE "${SERENITY_BUILD_DIR}/CMakeToolchain.txt" CACHE PATH "Toolchain file to use for cross-compilation")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue