================ @@ -299,6 +310,18 @@ elseif (FLANG_RT_GCC_RESOURCE_DIR) endif () endif () + + +if (CMAKE_C_BYTE_ORDER STREQUAL "BIG_ENDIAN") ---------------- Meinersbur wrote:
I had the same problem as you: CMake does not determine endianness when cross-compiling. This is leftover from my attempt. Glad you fixed it for me already. https://github.com/llvm/llvm-project/pull/137828 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits