summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-16 16:23:12 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-17 13:31:43 +0100
commit7ea55c883bb46487dff9ce41257d9913d356d04f (patch)
tree170cd2d4ddb97307bd0e48c74679c25db419ceee
parent1292d80b93d7ec8e61147a877231588d10725f68 (diff)
downloadserenity-7ea55c883bb46487dff9ce41257d9913d356d04f.zip
Toolchain: Make Kernel/API headers available to Clang toolchain build
Copied from 9b7986790900a3a81edd879ea31583670977496f.
-rwxr-xr-xToolchain/BuildClang.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh
index 1900d31f53..6862e96c96 100755
--- a/Toolchain/BuildClang.sh
+++ b/Toolchain/BuildClang.sh
@@ -229,9 +229,9 @@ mkdir -p "$BUILD"
pushd "$BUILD"
mkdir -p Root/usr/include/
SRC_ROOT=$($REALPATH "$DIR"/..)
- FILES=$(find "$SRC_ROOT"/Userland/Libraries/LibC "$SRC_ROOT"/Userland/Libraries/LibM "$SRC_ROOT"/Userland/Libraries/LibPthread "$SRC_ROOT"/Userland/Libraries/LibDl -name '*.h' -print)
+ FILES=$(find "$SRC_ROOT"/Kernel/API "$SRC_ROOT"/Userland/Libraries/LibC "$SRC_ROOT"/Userland/Libraries/LibM "$SRC_ROOT"/Userland/Libraries/LibPthread "$SRC_ROOT"/Userland/Libraries/LibDl -name '*.h' -print)
for header in $FILES; do
- target=$(echo "$header" | sed -e "s@$SRC_ROOT/Userland/Libraries/LibC@@" -e "s@$SRC_ROOT/Userland/Libraries/LibM@@" -e "s@$SRC_ROOT/Userland/Libraries/LibPthread@@" -e "s@$SRC_ROOT/Userland/Libraries/LibDl@@")
+ target=$(echo "$header" | sed -e "s@$SRC_ROOT/Userland/Libraries/LibC@@" -e "s@$SRC_ROOT/Userland/Libraries/LibM@@" -e "s@$SRC_ROOT/Userland/Libraries/LibPthread@@" -e "s@$SRC_ROOT/Userland/Libraries/LibDl@@" -e "s@$SRC_ROOT/Kernel/@Kernel/@")
buildstep "system_headers" install -D "$header" "Root/usr/include/$target"
done
unset SRC_ROOT