[PATCH] D76041: [builtins] Build for arm64e for Darwin
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 11 20:21:40 PDT 2020
smeenai created this revision.
smeenai added reviewers: beanz, compnerd, kubamracek, rjmccall.
Herald added subscribers: llvm-commits, Sanitizers, danielkiss, kristof.beyls, mgorny.
Herald added a reviewer: rengolin.
Herald added projects: Sanitizers, LLVM.
https://github.com/apple/swift/pull/30112/ makes the Swift standard
library for iOS build for arm64e. If you're building Swift against your
own LLVM, this in turn requires having the builtins built for arm64e,
otherwise you won't be able to use the builtins (which will in turn lead
to an undefined symbol for `__isOSVersionAtLeast`). Make the builtins
build for arm64e to fix this.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76041
Files:
compiler-rt/cmake/builtin-config-ix.cmake
compiler-rt/lib/builtins/CMakeLists.txt
Index: compiler-rt/lib/builtins/CMakeLists.txt
===================================================================
--- compiler-rt/lib/builtins/CMakeLists.txt
+++ compiler-rt/lib/builtins/CMakeLists.txt
@@ -485,6 +485,7 @@
set(armv7s_SOURCES ${arm_SOURCES})
set(armv7k_SOURCES ${arm_SOURCES})
set(arm64_SOURCES ${aarch64_SOURCES})
+set(arm64e_SOURCES ${aarch64_SOURCES})
# macho_embedded archs
set(armv6m_SOURCES ${thumb1_SOURCES})
Index: compiler-rt/cmake/builtin-config-ix.cmake
===================================================================
--- compiler-rt/cmake/builtin-config-ix.cmake
+++ compiler-rt/cmake/builtin-config-ix.cmake
@@ -39,7 +39,7 @@
set(WASM64 wasm64)
if(APPLE)
- set(ARM64 arm64)
+ set(ARM64 arm64 arm64e)
set(ARM32 armv7 armv7k armv7s)
set(X86_64 x86_64 x86_64h)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76041.249818.patch
Type: text/x-patch
Size: 819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200312/3fa7a226/attachment.bin>
More information about the llvm-commits
mailing list