mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
Toolchain: Use Platform/SerenityOS.cmake in LLVM toolchain build
By setting CMAKE_MODULE_PATH in the LLVM initial cache scripts, we can make the "SerenityOS" CMAKE_SYSTEM_NAME usable in the builds of compiler-rt, libunwind, libcxxabi and libcxx. This simplifies some toolchain patches and brings the cross-compiler patches closer to the Port's patches, and closer to something upstreamable.
This commit is contained in:
parent
af31253a16
commit
c5898806d2
4 changed files with 34 additions and 14 deletions
|
@ -285,6 +285,7 @@ pushd "$DIR/Build/clang"
|
|||
-DSERENITY_x86_64-pc-serenity_SYSROOT="$BUILD/x86_64clang/Root" \
|
||||
-DSERENITY_aarch64-pc-serenity_SYSROOT="$BUILD/aarch64clang/Root" \
|
||||
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
|
||||
-DSERENITY_MODULE_PATH="$DIR/CMake" \
|
||||
-C "$DIR/CMake/LLVMConfig.cmake" \
|
||||
${dev:+"-DLLVM_CCACHE_BUILD=ON"} \
|
||||
${ci:+"-DLLVM_CCACHE_BUILD=ON"} \
|
||||
|
@ -318,6 +319,7 @@ pushd "$DIR/Build/clang"
|
|||
-DSERENITY_TOOLCHAIN_ARCH="$arch" \
|
||||
-DSERENITY_TOOLCHAIN_ROOT="$PREFIX" \
|
||||
-DSERENITY_BUILD_DIR="$BUILD/${arch}clang/" \
|
||||
-DSERENITY_MODULE_PATH="$DIR/CMake" \
|
||||
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
|
||||
-C "$DIR/CMake/LLVMRuntimesConfig.cmake"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue