diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-05-05 15:52:42 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2021-05-05 15:52:42 +0000 |
commit | 7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4 (patch) | |
tree | b4bc5dc399344b7a4e7d1583a96afc903c3f72ee /libc/src/threads/linux | |
parent | efc31be7f8e8487c774dd9052980b67f0d5e70e2 (diff) | |
download | llvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.zip llvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.tar.gz llvm-7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4.tar.bz2 |
[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
Diffstat (limited to 'libc/src/threads/linux')
-rw-r--r-- | libc/src/threads/linux/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/threads/linux/CMakeLists.txt b/libc/src/threads/linux/CMakeLists.txt index 08a04c6..767bf34 100644 --- a/libc/src/threads/linux/CMakeLists.txt +++ b/libc/src/threads/linux/CMakeLists.txt @@ -3,9 +3,9 @@ add_gen_header( DEF_FILE thread_start_args.h.def GEN_HDR thread_start_args.h PARAMS - thread_start_args=${LIBC_TARGET_MACHINE}/thread_start_args.h.in + thread_start_args=${LIBC_TARGET_ARCHITECTURE}/thread_start_args.h.in DATA_FILES - ${LIBC_TARGET_MACHINE}/thread_start_args.h.in + ${LIBC_TARGET_ARCHITECTURE}/thread_start_args.h.in ) add_entrypoint_object( |