-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvmPackages_{13,14}.lldb: fix build on x86 macOS
See: #194634 (comment)
- Loading branch information
Showing
4 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
pkgs/development/compilers/llvm/13/lldb/cpu_subtype_arm64e_replacement.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
--- a/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
+++ b/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
@@ -233,7 +233,7 @@ void HostInfoMacOSX::ComputeHostArchitectureSupport(ArchSpec &arch_32, | ||
len = sizeof(is_64_bit_capable); | ||
::sysctlbyname("hw.cpu64bit_capable", &is_64_bit_capable, &len, NULL, 0); | ||
|
||
- if (cputype == CPU_TYPE_ARM64 && cpusubtype == CPU_SUBTYPE_ARM64E) { | ||
+ if (cputype == CPU_TYPE_ARM64 && cpusubtype == ((cpu_subtype_t) 2)) { // CPU_SUBTYPE_ARM64E is not available in the macOS 10.12 headers | ||
// The arm64e architecture is a preview. Pretend the host architecture | ||
// is arm64. | ||
cpusubtype = CPU_SUBTYPE_ARM64_ALL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
pkgs/development/compilers/llvm/14/lldb/cpu_subtype_arm64e_replacement.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
--- a/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
+++ b/source/Host/macosx/objcxx/HostInfoMacOSX.mm | ||
@@ -233,7 +233,7 @@ void HostInfoMacOSX::ComputeHostArchitectureSupport(ArchSpec &arch_32, | ||
len = sizeof(is_64_bit_capable); | ||
::sysctlbyname("hw.cpu64bit_capable", &is_64_bit_capable, &len, NULL, 0); | ||
|
||
- if (cputype == CPU_TYPE_ARM64 && cpusubtype == CPU_SUBTYPE_ARM64E) { | ||
+ if (cputype == CPU_TYPE_ARM64 && cpusubtype == ((cpu_subtype_t) 2)) { // CPU_SUBTYPE_ARM64E is not available in the macOS 10.12 headers | ||
// The arm64e architecture is a preview. Pretend the host architecture | ||
// is arm64. | ||
cpusubtype = CPU_SUBTYPE_ARM64_ALL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters