summaryrefslogtreecommitdiff
path: root/libc/src/threads
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2021-05-05 15:52:42 +0000
committerGuillaume Chatelet <gchatelet@google.com>2021-05-05 15:52:42 +0000
commit7c2ece523d7ff74f3eeabce1b9685f3eaae8cff4 (patch)
treeb4bc5dc399344b7a4e7d1583a96afc903c3f72ee /libc/src/threads
parentefc31be7f8e8487c774dd9052980b67f0d5e70e2 (diff)
[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')
-rw-r--r--libc/src/threads/linux/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/threads/linux/CMakeLists.txt b/libc/src/threads/linux/CMakeLists.txt
index 08a04c604a36..767bf34dc36b 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(