Bug 1956589 - Fix Fuzzilli build on macOS r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D243153
This commit is contained in:
@@ -4100,7 +4100,11 @@ static bool Fuzzilli(JSContext* cx, unsigned argc, Value* vp) {
|
|||||||
MOZ_ASSERT(false);
|
MOZ_ASSERT(false);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
#if defined(JS_CODEGEN_X64) || defined(JS_CODEGEN_X86)
|
||||||
__asm__("int3");
|
__asm__("int3");
|
||||||
|
#elif defined(JS_CODEGEN_ARM64)
|
||||||
|
__asm__("brk #0");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ if CONFIG["FUZZING_INTERFACES"]:
|
|||||||
else:
|
else:
|
||||||
USE_LIBS += ["static:fuzzer-interface"]
|
USE_LIBS += ["static:fuzzer-interface"]
|
||||||
|
|
||||||
if CONFIG["FUZZING_JS_FUZZILLI"]:
|
if CONFIG["FUZZING_JS_FUZZILLI"] and CONFIG["OS_ARCH"] == "Linux":
|
||||||
OS_LIBS += ["rt"]
|
OS_LIBS += ["rt"]
|
||||||
|
|
||||||
DEFINES["EXPORT_JS_API"] = True
|
DEFINES["EXPORT_JS_API"] = True
|
||||||
|
|||||||
Reference in New Issue
Block a user