Lines Matching +full:- +full:- +full:enable +full:- +full:libraries

2 # to use its support for building convenience "libraries" as a collection of
4 # runtime libraries.
9 # Top level target used to build all compiler-rt libraries.
10 add_custom_target(compiler-rt ALL)
11 set_target_properties(compiler-rt PROPERTIES FOLDER "Compiler-RT Misc")
13 # Setting these variables from an LLVM build is sufficient that compiler-rt can
14 # construct the output paths, so it can behave as if it were in-tree here.
23 string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION
25 # Setup the paths where compiler-rt runtimes and headers should be stored.
29 option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests."
33 # Use just-built Clang to compile/link tests on all platforms, except for
34 # Windows where we need to use clang-cl instead.
45 "Path where built compiler-rt libraries should be stored.")
47 "Path where built compiler-rt executables should be stored.")
49 "Path where built compiler-rt libraries should be installed.")
50 option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests." OFF)
76 execute_process(COMMAND xcodebuild -version -sdk macosx Path
80 set(OSX_SYSROOT_FLAG "-isysroot${OSX_SYSROOT}")
83 option(COMPILER_RT_ENABLE_IOS "Enable building for iOS" Off)
84 option(COMPILER_RT_ENABLE_WATCHOS "Enable building for watchOS - Experimental" Off)
85 option(COMPILER_RT_ENABLE_TVOS "Enable building for tvOS - Experimental" Off)
89 # Find and run MSVC (not clang-cl) and get its version. This will tell clang-cl
93 # Find and run MSVC (not clang-cl) and get its version. This will tell
94 # clang-cl what version of MSVC to pretend to be so that the STL works.
99 string(REGEX REPLACE "^.*Compiler Version ([0-9.]+) for .*$" "\\1"
101 if (MSVC_COMPAT_VERSION MATCHES "^[0-9].+$")
102 set(MSVC_VERSION_FLAG "-fms-compatibility-version=${MSVC_COMPAT_VERSION}")
103 # Add this flag into the host build if this is clang-cl.
107 # Add this flag to test compiles to suppress clang's auto-detection
118 set(COMPILER_RT_OS_SUFFIX "-android")
120 if("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "i[2-6]86|x86|amd64")
122 test_target_arch(x86_64 "" "-m64")
123 # FIXME: We build runtimes for both i686 and i386, as "clang -m32" may
124 # target different variant than "$CMAKE_C_COMPILER -m32". This part should
126 test_target_arch(i686 __i686__ "-m32")
127 test_target_arch(i386 __i386__ "-m32")
138 test_target_arch(powerpc64 "" "-m64")
140 test_target_arch(powerpc64le "" "-m64")
145 # Gcc doesn't accept -m32/-m64 so we do the next best thing and use
146 # -mips32r2/-mips64r2. We don't use -mips1/-mips3 because we want to match
147 # clang's default CPU's. In the 64-bit case, we must also specify the ABI
150 test_target_arch(mipsel "" "-mips32r2" "--target=mipsel-linux-gnu")
151 test_target_arch(mips64el "" "-mips64r2" "--target=mips64el-linux-gnu" "-mabi=n64")
153 test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu")
154 test_target_arch(mips64 "" "-mips64r2" "--target=mips64-linux-gnu" "-mabi=n64")
156 test_target_arch(arm "" "-march=armv7-a" "-mfloat-abi=soft")
157 test_target_arch(armhf "" "-march=armv7-a" "-mfloat-abi=hard")
159 test_target_arch(aarch32 "" "-march=armv8-a")
161 test_target_arch(aarch64 "" "-march=armv8-a")
163 test_target_arch(wasm32 "" "--target=wasm32-unknown-unknown")
165 test_target_arch(wasm64 "" "--target=wasm64-unknown-unknown")