Home | History | Annotate | Download | only in compiler-rt

Lines Matching full:arch

185 function(get_target_flags_for_arch arch out_var)
186 list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)
188 message(FATAL_ERROR "Unsupported architecture: ${arch}")
190 set(${out_var} ${TARGET_${arch}_CFLAGS} PARENT_SCOPE)
201 # test_target_arch(<arch> <target flags...>)
204 macro(test_target_arch arch)
205 set(TARGET_${arch}_CFLAGS ${ARGN})
206 try_compile(CAN_TARGET_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_SOURCE}
207 COMPILE_DEFINITIONS "${TARGET_${arch}_CFLAGS}"
208 OUTPUT_VARIABLE TARGET_${arch}_OUTPUT
209 CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS:STRING=${TARGET_${arch}_CFLAGS}")
210 if(${CAN_TARGET_${arch}})
211 list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
212 elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "${arch}" OR
213 "${arch}" STREQUAL "arm_android")
215 message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
256 foreach(arch ${ARGN})
257 list(FIND COMPILER_RT_SUPPORTED_ARCH ${arch} ARCH_INDEX)
258 if(NOT (ARCH_INDEX EQUAL -1) AND CAN_TARGET_${arch})
259 list(APPEND archs ${arch})