mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
Toolchain: Make Kernel/API headers available to Clang toolchain build
Copied from 9b79867909
.
This commit is contained in:
parent
1292d80b93
commit
7ea55c883b
Notes:
sideshowbarker
2024-07-18 05:35:24 +09:00
Author: https://github.com/trflynn89
Commit: 7ea55c883b
Pull-request: https://github.com/SerenityOS/serenity/pull/9458
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