diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-07-13 16:43:45 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-08 10:55:36 +0200 |
commit | 13e3df41defadbdfd413ff3abb18beb2af0569cc (patch) | |
tree | 806ee83cd9f1453feee68a480513a7a9f3607d55 /Meta/build-root-filesystem.sh | |
parent | 15e217ea68f5f83f953ff6c41a7c2529704f1f11 (diff) | |
download | serenity-13e3df41defadbdfd413ff3abb18beb2af0569cc.zip |
Meta: Add Clang support to the CMake build scripts
Diffstat (limited to 'Meta/build-root-filesystem.sh')
-rwxr-xr-x | Meta/build-root-filesystem.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |