Lines Matching +full:libc +full:- +full:build

1 # ------------------------------------------------------------------------------
4 # The correct target OS and architecture to build the libc for is deduced here.
7 # ------------------------------------------------------------------------------
10 # If the compiler is visual c++ or equivalent, we will assume a host build.
15 message(WARNING "libc build: Detected MSVC or equivalent compiler; "
16 "LIBC_TARGET_TRIPLE is ignored and a host build is assumed.")
24 string(REPLACE "-" ";" triple_comps ${triple})
29 math(EXPR system_index "${triple_size} - 2")
31 # The target_arch string can have sub-architecture suffixes which we want to
32 # remove. So, we regex-match the string and set target_arch to a cleaner
73 list(GET triple_comps -1 gpu_target_sys)
81 execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version -v
86 message(FATAL_ERROR "libc build: error querying compiler info from the "
89 string(REGEX MATCH "Target: [-_a-zA-Z0-9.]+[ \r\n]+"
92 message(FATAL_ERROR "libc build: could not read compiler target info from:\n"
96 string(SUBSTRING ${libc_compiler_target_info} 8 -1 libc_compiler_triple)
101 "libc build: Invalid or unknown libc compiler target triple: "
112 "libc build: Specify only LLVM_RUNTIMES_TARGET if you are doing a "
113 "runtimes/bootstrap build. If you are doing a standalone build, "
124 # The libc's target architecture and OS are set to match the compiler's default
126 # LLVM_RUNTIMES_TARGET (for runtimes/bootstrap build). If one of them is set,
127 # then we will use that target triple to deduce libc's target OS and
133 "libc build: Invalid or unknown triple: ${explicit_target_triple}")
145 # the libc CMake infrastructure. Also, this is where we also check if the target
167 "Unsupported libc target architecture ${LIBC_TARGET_ARCHITECTURE}")
176 # poky are custom Linux-base systems created by yocto. Since these are Linux
192 "Unsupported libc target operating system ${LIBC_TARGET_OS}")
197 # LIBC_TARGET_TRIPLE or LLVM_RUNTIMES_TARGET, we will add a --target option
199 # is no equivalent of an option like --target.
209 LIBC_COMPILE_OPTIONS_DEFAULT "--target=${explicit_target_triple}")
214 # Windows does not support full mode build.
216 message(FATAL_ERROR "Windows does not support full mode build.")
221 "Building libc for ${LIBC_TARGET_ARCHITECTURE} on ${LIBC_TARGET_OS} with