diff options
author | Fangrui Song <i@maskray.me> | 2022-11-22 17:01:39 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-11-22 17:01:39 -0800 |
commit | 987b49395c604c794bee4439af4d3a47b4b58276 (patch) | |
tree | 68ef9553a8383ad655ef9f586904730d064bbab6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 169f0556530412ed1589ba5f3edeb8665bf16a91 (diff) | |
download | llvm-987b49395c604c794bee4439af4d3a47b4b58276.zip llvm-987b49395c604c794bee4439af4d3a47b4b58276.tar.gz llvm-987b49395c604c794bee4439af4d3a47b4b58276.tar.bz2 |
[PPC] Undefine __ppc64__ to match GCC
GCC only defines `__ppc64__` for darwin while the darwin support has been
removed from llvm-project. The existence of `__ppc64__` makes some software
think we are compiling for big-endian PowerPC Mac; also it lures users to write
code which is not portable to GCC.
It is straightforward if a distro wants to keep the macro: add
`-D__ppc64__=1` to a Clang configuration file.
Reviewed By: thesamesam, nemanjai
Differential Revision: https://reviews.llvm.org/D137511
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions