mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
Toolchain: Make Kernel/API headers available to Clang toolchain build
Copied from 9b79867909
.
This commit is contained in:
parent
1292d80b93
commit
7ea55c883b
1 changed files with 2 additions and 2 deletions
|
@ -229,9 +229,9 @@ mkdir -p "$BUILD"
|
||||||
pushd "$BUILD"
|
pushd "$BUILD"
|
||||||
mkdir -p Root/usr/include/
|
mkdir -p Root/usr/include/
|
||||||
SRC_ROOT=$($REALPATH "$DIR"/..)
|
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
|
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"
|
buildstep "system_headers" install -D "$header" "Root/usr/include/$target"
|
||||||
done
|
done
|
||||||
unset SRC_ROOT
|
unset SRC_ROOT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue