From 13e3df41defadbdfd413ff3abb18beb2af0569cc Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Tue, 13 Jul 2021 16:43:45 +0200 Subject: Meta: Add Clang support to the CMake build scripts --- Meta/build-root-filesystem.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Meta/build-root-filesystem.sh') diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index bdd571f69c..8eb8de7dbf 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -44,10 +44,11 @@ else rsync -aH --inplace Root/ mnt/ chown -R 0:0 mnt/ fi + SERENITY_ARCH="${SERENITY_ARCH:-i686}" LLVM_VERSION="${LLVM_VERSION:-12.0.1}" -if [ "$USE_CLANG_TOOLCHAIN" = "ON" ]; then +if [ "$USE_CLANG_TOOLCHAIN" = "1" ]; then TOOLCHAIN_DIR="$SERENITY_SOURCE_DIR"/Toolchain/Local/clang/"$SERENITY_ARCH" mkdir -p mnt/usr/lib/clang/"$LLVM_VERSION"/lib/serenity $CP "$TOOLCHAIN_DIR"/lib/clang/"$LLVM_VERSION"/lib/serenity/* mnt/usr/lib/clang/"$LLVM_VERSION"/lib/serenity -- cgit v1.2.3