mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Meta: Make serenity.sh rebuild-toolchain aarch64 clang
work
This commit is contained in:
parent
82cb885966
commit
1ed1a57707
Notes:
sideshowbarker
2024-07-18 04:30:04 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/1ed1a57707a Pull-request: https://github.com/SerenityOS/serenity/pull/9864 Reviewed-by: https://github.com/linusg ✅
2 changed files with 10 additions and 1 deletions
|
@ -253,7 +253,7 @@ pushd "$DIR/Build/clang/$ARCH"
|
|||
-DCMAKE_BUILD_TYPE="MinSizeRel" \
|
||||
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
|
||||
-DLLVM_DEFAULT_TARGET_TRIPLE="$LLVM_TARGET" \
|
||||
-DLLVM_TARGETS_TO_BUILD=X86 \
|
||||
'-DLLVM_TARGETS_TO_BUILD=X86;AArch64' \
|
||||
-DLLVM_ENABLE_BINDINGS=OFF \
|
||||
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
|
||||
-DLLVM_ENABLE_PROJECTS="clang;lld" \
|
||||
|
|
|
@ -2,6 +2,15 @@ diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
|
|||
index 90a67d03b..ad21af415 100644
|
||||
--- a/clang/lib/Basic/Targets.cpp
|
||||
+++ b/clang/lib/Basic/Targets.cpp
|
||||
@@ -148,6 +148,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
|
||||
return new NetBSDTargetInfo<AArch64leTargetInfo>(Triple, Opts);
|
||||
case llvm::Triple::OpenBSD:
|
||||
return new OpenBSDTargetInfo<AArch64leTargetInfo>(Triple, Opts);
|
||||
+ case llvm::Triple::Serenity:
|
||||
+ return new SerenityTargetInfo<AArch64leTargetInfo>(Triple, Opts);
|
||||
case llvm::Triple::Win32:
|
||||
switch (Triple.getEnvironment()) {
|
||||
case llvm::Triple::GNU:
|
||||
@@ -527,6 +527,8 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
|
||||
return new MCUX86_32TargetInfo(Triple, Opts);
|
||||
case llvm::Triple::Hurd:
|
||||
|
|
Loading…
Reference in a new issue