Lines Matching +full:- +full:isysroot
15 check_cxx_compiler_flag(-fPIC COMPILER_RT_HAS_FPIC_FLAG)
16 check_cxx_compiler_flag(-fPIE COMPILER_RT_HAS_FPIE_FLAG)
17 check_cxx_compiler_flag(-fno-builtin COMPILER_RT_HAS_FNO_BUILTIN_FLAG)
18 check_cxx_compiler_flag(-fno-exceptions COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG)
19 check_cxx_compiler_flag(-fomit-frame-pointer COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG)
20 check_cxx_compiler_flag(-funwind-tables COMPILER_RT_HAS_FUNWIND_TABLES_FLAG)
21 check_cxx_compiler_flag(-fno-stack-protector COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG)
22 check_cxx_compiler_flag(-fno-sanitize=safe-stack COMPILER_RT_HAS_FNO_SANITIZE_SAFE_STACK_FLAG)
23 check_cxx_compiler_flag(-fvisibility=hidden COMPILER_RT_HAS_FVISIBILITY_HIDDEN_FLAG)
24 check_cxx_compiler_flag(-frtti COMPILER_RT_HAS_FRTTI_FLAG)
25 check_cxx_compiler_flag(-fno-rtti COMPILER_RT_HAS_FNO_RTTI_FLAG)
26 check_cxx_compiler_flag(-ffreestanding COMPILER_RT_HAS_FFREESTANDING_FLAG)
27 check_cxx_compiler_flag("-Werror -fno-function-sections" COMPILER_RT_HAS_FNO_FUNCTION_SECTIONS_FLAG)
28 check_cxx_compiler_flag(-std=c++11 COMPILER_RT_HAS_STD_CXX11_FLAG)
29 check_cxx_compiler_flag(-ftls-model=initial-exec COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC)
30 check_cxx_compiler_flag(-fno-lto COMPILER_RT_HAS_FNO_LTO_FLAG)
31 check_cxx_compiler_flag("-Werror -msse3" COMPILER_RT_HAS_MSSE3_FLAG)
32 check_cxx_compiler_flag(--sysroot=. COMPILER_RT_HAS_SYSROOT_FLAG)
35 # MinGW warns if -fvisibility-inlines-hidden is used.
36 …check_cxx_compiler_flag("-fvisibility-inlines-hidden" COMPILER_RT_HAS_FVISIBILITY_INLINES_HIDDEN_F…
45 check_cxx_compiler_flag(-gline-tables-only COMPILER_RT_HAS_GLINE_TABLES_ONLY_FLAG)
46 check_cxx_compiler_flag(-g COMPILER_RT_HAS_G_FLAG)
50 check_cxx_compiler_flag(-Wall COMPILER_RT_HAS_WALL_FLAG)
51 check_cxx_compiler_flag(-Werror COMPILER_RT_HAS_WERROR_FLAG)
52 check_cxx_compiler_flag("-Werror -Wframe-larger-than=512" COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG)
53 check_cxx_compiler_flag("-Werror -Wglobal-constructors" COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG)
54 check_cxx_compiler_flag("-Werror -Wc99-extensions" COMPILER_RT_HAS_WC99_EXTENSIONS_FLAG)
55 check_cxx_compiler_flag("-Werror -Wgnu" COMPILER_RT_HAS_WGNU_FLAG)
56 check_cxx_compiler_flag("-Werror -Wnon-virtual-dtor" COMPILER_RT_HAS_WNON_VIRTUAL_DTOR_FLAG)
57 check_cxx_compiler_flag("-Werror -Wvariadic-macros" COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG)
58 check_cxx_compiler_flag("-Werror -Wunused-parameter" COMPILER_RT_HAS_WUNUSED_PARAMETER_FLAG)
82 check_linker_flag("-Wl,-z,global" COMPILER_RT_HAS_Z_GLOBAL)
93 # runtime libraries supported by our current compilers cross-compiling
105 # Detect whether the current target platform is 32-bit or 64-bit, and setup
106 # the correct commandline flags needed to attempt to target 32-bit and 64-bit.
117 if(ARCH_INDEX EQUAL -1)
125 # for cross-targeted hardware (i.e. iOS).
126 set(${out_var} -arch ${arch} PARENT_SCOPE)
178 set(DARWIN_ios_MIN_VER_FLAG -miphoneos-version-min)
184 set(DARWIN_watchos_MIN_VER_FLAG -mwatchos-version-min)
190 set(DARWIN_tvos_MIN_VER_FLAG -mtvos-version-min)
201 string(REGEX MATCH "-mmacosx-version-min=([.0-9]+)"
218 set(DARWIN_COMMON_CFLAGS -stdlib=libc++)
220 -stdlib=libc++
221 -lc++
222 -lc++abi)
224 check_linker_flag("-fapplication-extension" COMPILER_RT_HAS_APP_EXTENSION)
226 list(APPEND DARWIN_COMMON_LINKFLAGS "-fapplication-extension")
231 -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION})
234 -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION})
237 list(APPEND DARWIN_osx_CFLAGS -isysroot ${DARWIN_osx_SYSROOT})
238 list(APPEND DARWIN_osx_LINKFLAGS -isysroot ${DARWIN_osx_SYSROOT})
260 -isysroot ${DARWIN_${platform}sim_SYSROOT})
264 -isysroot ${DARWIN_${platform}sim_SYSROOT})
288 -isysroot ${DARWIN_${platform}_SYSROOT})
292 -isysroot ${DARWIN_${platform}_SYSROOT})
354 # Architectures supported by compiler-rt libraries.
390 message(STATUS "Compiler-RT supported architectures: ${COMPILER_RT_SUPPORTED_ARCH}")