mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
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
This commit is contained in:
parent
c292f9ffdc
commit
ffa0c4d864
1 changed files with 4 additions and 0 deletions
|
|
@ -4,7 +4,9 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#include "PoisonIOInterposer.h"
|
#include "PoisonIOInterposer.h"
|
||||||
|
#ifndef __aarch64__
|
||||||
#include "mach_override.h"
|
#include "mach_override.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "mozilla/ArrayUtils.h"
|
#include "mozilla/ArrayUtils.h"
|
||||||
#include "mozilla/Assertions.h"
|
#include "mozilla/Assertions.h"
|
||||||
|
|
@ -360,9 +362,11 @@ InitPoisonIOInterposer()
|
||||||
if (!d->Function) {
|
if (!d->Function) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#ifndef __aarch64__
|
||||||
DebugOnly<mach_error_t> t = mach_override_ptr(d->Function, d->Wrapper,
|
DebugOnly<mach_error_t> t = mach_override_ptr(d->Function, d->Wrapper,
|
||||||
&d->Buffer);
|
&d->Buffer);
|
||||||
MOZ_ASSERT(t == err_none);
|
MOZ_ASSERT(t == err_none);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue