summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-07-07 17:38:09 -0500
committerBrian Smith <brian@dbsoft.org>2023-07-07 17:38:09 -0500
commit7a2f1143346d87a7542cbc94305c4c01279cf348 (patch)
treed6f908933d8e5a8bbdec729a06db50aa28724070
parentaf5dbfc12003e61f21d2a7c71f239d18ae3945cf (diff)
downloaduxp-7a2f1143346d87a7542cbc94305c4c01279cf348.tar.gz
No Issue - Fix debug builds on ARM Mac.
mach_override used by the IO Poisoner used in debug mode is not support on ARM. https://bugzilla.mozilla.org/show_bug.cgi?id=1658385
-rw-r--r--xpcom/build/PoisonIOInterposerMac.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpcom/build/PoisonIOInterposerMac.cpp b/xpcom/build/PoisonIOInterposerMac.cpp
index d76b728ade..d76d6af415 100644
--- a/xpcom/build/PoisonIOInterposerMac.cpp
+++ b/xpcom/build/PoisonIOInterposerMac.cpp
@@ -4,7 +4,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "PoisonIOInterposer.h"
+#ifndef __aarch64__
#include "mach_override.h"
+#endif
#include "mozilla/ArrayUtils.h"
#include "mozilla/Assertions.h"
@@ -360,9 +362,11 @@ InitPoisonIOInterposer()
if (!d->Function) {
continue;
}
+#ifndef __aarch64__
DebugOnly<mach_error_t> t = mach_override_ptr(d->Function, d->Wrapper,
&d->Buffer);
MOZ_ASSERT(t == err_none);
+#endif
}
}