[libc] Allow target architecture customization
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 10 May 2021 07:53:48 +0000 (07:53 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 10 May 2021 07:53:48 +0000 (07:53 +0000)
commited4f4edea20caa13a468ab279a0df20b9ba667fb
tree3c0b5a4a9a2fd7c0ab2c9640c632a27b4a390da7
parent9586937ef513b5b9b134322c6c81dcdd03ca784a
[libc] Allow target architecture customization

This patch provides a way to specify the default target cpu optimizations to use when compiling llvm-libc.
This ensures we don't rely on current compiler's default and allows compiling and cross compiling for a particular target.

Differential Revision: https://reviews.llvm.org/D101991
libc/CMakeLists.txt
libc/cmake/modules/LLVMLibCLibraryRules.cmake
libc/cmake/modules/LLVMLibCObjectRules.cmake
libc/cmake/modules/LLVMLibCTestRules.cmake