mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Toolchain: Hardcode the results of LLVM runtime library detection
This keeps us from accidentally building toolchains that don't make it through a clean build if we build them using a populated sysroot, as it would otherwise detect libpthread and friends and try to pull them in while LibC is not yet built.
This commit is contained in:
parent
47c428dbe3
commit
eb6c911b3a
Notes:
sideshowbarker
2024-07-17 06:29:03 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/eb6c911b3a Pull-request: https://github.com/SerenityOS/serenity/pull/15398
1 changed files with 12 additions and 0 deletions
|
@ -60,3 +60,15 @@ set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
|
|||
set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOOL "")
|
||||
set(LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
|
||||
set(LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
|
||||
|
||||
# Hardcode autodetection results for libm, libdl, and libpthread.
|
||||
# This keeps us from accidentially detecting those libraries as being present
|
||||
# if we build the toolchain with a populated sysroot (which features the
|
||||
# compability linker scripts).
|
||||
# TODO: Figure out if we can always build against the Stubs directory instead.
|
||||
set(LIBCXXABI_HAS_DL_LIB OFF CACHE BOOL "")
|
||||
set(LIBCXXABI_HAS_PTHREAD_LIB OFF CACHE BOOL "")
|
||||
set(LIBCXX_HAS_M_LIB OFF CACHE BOOL "")
|
||||
set(LIBCXX_HAS_PTHREAD_LIB OFF CACHE BOOL "")
|
||||
set(LIBUNWIND_HAS_DL_LIB OFF CACHE BOOL "")
|
||||
set(LIBUNWIND_HAS_PTHREAD_LIB OFF CACHE BOOL "")
|
||||
|
|
Loading…
Reference in a new issue