llvm-project/libc/cmake/modules
Guillaume Chatelet 7c2ece523d [libc] Normalize LIBC_TARGET_MACHINE
Current implementation defines LIBC_TARGET_MACHINE with the use of CMAKE_SYSTEM_PROCESSOR.
Unfortunately CMAKE_SYSTEM_PROCESSOR is OS dependent and can produce different results.
An evidence of this is the various matchers used to detect whether the architecture is x86.

This patch normalizes LIBC_TARGET_MACHINE and renames it LIBC_TARGET_ARCHITECTURE.
I've added many architectures but we may want to limit ourselves to x86 and ARM.

Differential Revision: https://reviews.llvm.org/D101524
2021-05-05 15:52:42 +00:00
..
cpu_features [libc][NFC] Use a end of list marker for cpu feature detection. 2021-01-27 01:24:15 -08:00
LLVMLibCArchitectures.cmake [libc] Normalize LIBC_TARGET_MACHINE 2021-05-05 15:52:42 +00:00
LLVMLibCCheckCpuFeatures.cmake [libc] Normalize LIBC_TARGET_MACHINE 2021-05-05 15:52:42 +00:00
LLVMLibCHeaderRules.cmake [libc] Introduce a full build mode CMake option. 2021-03-12 13:28:40 -08:00
LLVMLibCLibraryRules.cmake [libc] Use add_library in add_entrypoint_library instead of invoking ar. 2021-03-20 04:25:51 +00:00
LLVMLibCObjectRules.cmake [libc][NFC] Exclude few targets from the `all` target. 2021-02-24 08:59:55 -08:00
LLVMLibCRules.cmake [libc] [NFC] Split the CMake rules into multiple files. 2020-04-21 09:24:17 -07:00
LLVMLibCTargetNameUtils.cmake [libc] Add fully-qualified target names. 2020-04-10 18:01:52 -07:00
LLVMLibCTestRules.cmake [libc][NFC] Add an alias named "check-llvmlibc" for "check-libc". 2021-03-22 16:55:34 +00:00