mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 11:09:05 +03: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: https://github.com/SerenityOS/serenity/commit/4b305e8fe4 Pull-request: https://github.com/SerenityOS/serenity/pull/15434 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/timschumi ✅
@ -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…
Reference in New Issue
Block a user