Lines Matching +full:- +full:- +full:arch
3 # On OS X SDKs can be installed anywhere on the base system and xcode-select can
9 COMMAND xcodebuild -version -sdk ${sdk_name}.internal Path
16 COMMAND xcodebuild -version -sdk ${sdk_name} Path
32 COMMAND ld -v
42 # If auto-detecting fails, fall back to a default set
43 message(WARNING "Detecting supported architectures from 'ld -v' failed. Returning default set.")
78 foreach(arch ${archs})
80 set(arch_linker_flags "-arch ${arch} ${os_linker_flags}")
82 try_compile_only(CAN_TARGET_${os}_${arch} -v -arch ${arch} ${DARWIN_${os}_CFLAGS})
84 try_compile(CAN_TARGET_${os}_${arch} ${CMAKE_BINARY_DIR} ${SIMPLE_C}
85 COMPILE_DEFINITIONS "-v -arch ${arch}" ${DARWIN_${os}_CFLAGS}
86 CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS=${arch_linker_flags}"
89 if(${CAN_TARGET_${os}_${arch}})
90 list(APPEND working_archs ${arch})
93 "Testing compiler for supporting ${os}-${arch}:\n"
101 # This function checks the host cpusubtype to see if it is post-haswell. Haswell
109 string(REGEX MATCH "hw.cpusubtype: ([0-9]*)"
137 "OS;ARCH;MIN_VERSION"
142 message(FATAL_ERROR "Must specify OS and ARCH to darwin_find_excluded_builtins_list!")
148 ${DARWIN_EXCLUDE_DIR}/${LIB_OS}-${LIB_ARCH}.txt)
151 file(GLOB builtin_lists ${DARWIN_EXCLUDE_DIR}/${LIB_OS}*-${LIB_ARCH}.txt)
153 string(REGEX MATCH "${LIB_OS}([0-9\\.]*)-${LIB_ARCH}.txt" VERSION_MATCHED "${builtin_list}")
165 ${DARWIN_EXCLUDE_DIR}/${LIB_OS}${smallest_version}-${LIB_ARCH}.txt)
175 # adds a single builtin library for a single OS & ARCH
179 "PARENT_TARGET;OS;ARCH"
185 set(sysroot_flag -isysroot ${DARWIN_${LIB_OS}_SYSROOT})
203 list(APPEND ${LIB_OS}_${suffix}_lipo_flags -arch ${arch} $<TARGET_FILE:${libname}>)
214 COMMAND ${CMAKE_COMMAND} -E make_directory ${LIB_OUTPUT_DIR}
215 COMMAND lipo -output
217 -create ${LIB_LIPO_FLAGS}
230 # Filter out generic versions of routines that are re-implemented in
232 # same symbols, making the symbol selection non-deterministic.
236 set(filter_value -1)
268 -isysroot ${DARWIN_osx_SYSROOT}
270 -arch i386
284 # OS library is constructed by lipo-ing together single-architecture libraries.
286 set(DARWIN_EXCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Darwin-excludes)
288 set(CFLAGS "-fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
299 foreach (arch ${DARWIN_BUILTIN_ARCHS})
300 darwin_find_excluded_builtins_list(${arch}_${os}_EXCLUDED_BUILTINS
302 ARCH ${arch}
306 EXCLUDE ${arch}_${os}_EXCLUDED_BUILTINS
307 ${${arch}_SOURCES})
311 ARCH ${arch}
313 CFLAGS ${CFLAGS} -arch ${arch}
319 foreach (arch ${DARWIN_BUILTIN_ARCHS})
320 # By not specifying MIN_VERSION this only reads the OS and OS-arch lists.
323 darwin_find_excluded_builtins_list(${arch}_${os}_EXCLUDED_BUILTINS
325 ARCH ${arch})
328 EXCLUDE ${arch}_${os}_EXCLUDED_BUILTINS
329 ${${arch}_SOURCES})
334 ARCH ${arch}
336 CFLAGS ${CFLAGS} -arch ${arch} -mkernel
370 # this is a hacky opt-out. If you can't target both intel and arm
376 if(i386_idx GREATER -1)
381 if(x86_64_idx GREATER -1)
387 set(CFLAGS "-Oz -Wall -fomit-frame-pointer -ffreestanding")
392 set(SOFT_FLOAT_FLAG -mfloat-abi=soft)
393 set(HARD_FLOAT_FLAG -mfloat-abi=hard)
396 set(PIC_FLAG -fPIC)
397 set(STATIC_FLAG -static)
406 set(CFLAGS_armv7 "-target thumbv7-apple-darwin-eabi")
407 set(CFLAGS_i386 "-march=pentium")
411 darwin_read_list_from_file(thumb2_64_FUNCTIONS ${MACHO_SYM_DIR}/thumb2-64.txt)
423 foreach(arch ${DARWIN_macho_embedded_ARCHS})
424 darwin_filter_builtin_sources(${arch}_filtered_sources
425 INCLUDE ${arch}_FUNCTIONS
426 ${${arch}_SOURCES})
427 if(NOT ${arch}_filtered_sources)
428 message("${arch}_SOURCES: ${${arch}_SOURCES}")
429 message("${arch}_FUNCTIONS: ${${arch}_FUNCTIONS}")
437 foreach(arch ${DARWIN_${float_type}_FLOAT_ARCHS})
440 if(${arch} MATCHES "^arm")
447 ARCH ${arch}
448 SOURCES ${${arch}_filtered_sources}
449 … CFLAGS ${CFLAGS} -arch ${arch} ${${type}_FLAG} ${float_flag} ${CFLAGS_${arch}}