From d461e750345ee187ff15c7354ff2acef730344d3 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 21 May 2025 18:24:32 +0000 Subject: [PATCH] No Issue - Fix building on Linux 32-bit ARM with clang. Need to have system definitions before defining the overrides. The sytem definitions have additional attributes that conflict. clang 14 that I am using also requires -fno-integrated-as for several files, but I left that out since it is probably fixed in newer versions of clang. --- memory/mozalloc/mozalloc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memory/mozalloc/mozalloc.cpp b/memory/mozalloc/mozalloc.cpp index 21d8e8666e..57976ac953 100644 --- a/memory/mozalloc/mozalloc.cpp +++ b/memory/mozalloc/mozalloc.cpp @@ -3,6 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include // These need to be included before overriding +#include // with clang on 32-bit ARM Linux -dbsoft #include // for size_t // Building with USE_STATIC_LIBS = True sets -MT instead of -MD. -MT sets _MT,