We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ee937 commit 3427f33Copy full SHA for 3427f33
compiler-rt/cmake/builtin-config-ix.cmake
@@ -211,6 +211,15 @@ if(APPLE)
211
endif()
212
endforeach()
213
214
+ # Cross-compilation builtins for Mach-O supported archs that Darwin systems don't use, but embedded baremetal use cases might need.
215
+ if(COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS)
216
+ # Typically, COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS is something like "armv6 armv6m armv7 armv7m armv7em"
217
+ foreach(arch ${COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS})
218
+ list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
219
+ set(CAN_TARGET_${arch} 1)
220
+ endforeach()
221
+ endif()
222
+
223
list_intersect(BUILTIN_SUPPORTED_ARCH ALL_BUILTIN_SUPPORTED_ARCH COMPILER_RT_SUPPORTED_ARCH)
224
225
else()
0 commit comments