Toolchain: Add $arch-pc-serenity-clang symlink
This will allow us to build ports that don't allow the --target and --sysroot compiler arguments to be specified in $CC/$CXX.
This commit is contained in:
parent
c8fa0c3cd7
commit
d4d6f2d945
Notes:
sideshowbarker
2024-07-17 10:18:48 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/d4d6f2d945 Pull-request: https://github.com/SerenityOS/serenity/pull/14259 Reviewed-by: https://github.com/ADKaster
1 changed files with 7 additions and 1 deletions
|
@ -321,7 +321,13 @@ pushd "$DIR/Build/clang"
|
|||
popd
|
||||
|
||||
pushd "$DIR/Local/clang/bin/"
|
||||
buildstep "mold_symlink" ln -s ../../mold/bin/mold ld.mold
|
||||
ln -s ../../mold/bin/mold ld.mold
|
||||
|
||||
for arch in $ARCHS; do
|
||||
ln -s clang "$arch"-pc-serenity-clang
|
||||
ln -s clang++ "$arch"-pc-serenity-clang++
|
||||
echo "--sysroot=$BUILD/${arch}clang/Root" > "$arch"-pc-serenity.cfg
|
||||
done
|
||||
popd
|
||||
|
||||
# === SAVE TO CACHE ===
|
||||
|
|
Loading…
Add table
Reference in a new issue