[all-commits] [llvm/llvm-project] ef2735: [Flang] Detect endianness in the preprocessor (#13...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon Mar 24 16:29:27 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef2735d2436fd14288d1766a152f3a10f36a4af9
https://github.com/llvm/llvm-project/commit/ef2735d2436fd14288d1766a152f3a10f36a4af9
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-03-24 (Mon, 24 Mar 2025)
Changed paths:
M flang/cmake/modules/FlangCommon.cmake
M flang/include/flang/Common/api-attrs.h
M flang/include/flang/Evaluate/common.h
Log Message:
-----------
[Flang] Detect endianness in the preprocessor (#132767)
Summary:
Currently we use `TestBigEndian` in CMake to determine endianness. This
doesn't work on all platforms and is deprecated since CMake 3.20.
Instead of using CMake, we can just use the GNU/Clang preprocessor
definitions.
The only difficulty is MSVC, mostly because they don't support the same
macros. But, as far as I'm aware, MSVC / Windows targets are always
little endian, and if not we can just override it for that specific
target in the future.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list