[all-commits] [llvm/llvm-project] 27ef43: [compiler-rt] Add platform detection support for x32
John Paul Adrian Glaubitz via All-commits
all-commits at lists.llvm.org
Fri Jun 11 11:44:58 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 27ef43d279b2f6d0c7bac7718f3904bb204ed646
https://github.com/llvm/llvm-project/commit/27ef43d279b2f6d0c7bac7718f3904bb204ed646
Author: John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>
Date: 2021-06-11 (Fri, 11 Jun 2021)
Changed paths:
M compiler-rt/cmake/Modules/CompilerRTUtils.cmake
Log Message:
-----------
[compiler-rt] Add platform detection support for x32
Currently, the compiler-rt build system checks only whether __X86_64
is defined to determine whether the default compiler-rt target arch
is x86_64. Since x32 defines __X86_64 as well, we must also check that
the default pointer size is eight bytes and not four bytes to properly
detect a 64-bit x86_64 compiler-rt default target arch.
Reviewed By: hvdijk, vitalybuka
Differential Revision: https://reviews.llvm.org/D99988
More information about the All-commits
mailing list