diff --git a/runtime/dart_vm.cc b/runtime/dart_vm.cc index 3758d34c93899..0beb81259c28e 100644 --- a/runtime/dart_vm.cc +++ b/runtime/dart_vm.cc @@ -331,7 +331,7 @@ DartVM::DartVM(std::shared_ptr vm_data, #endif // !OS_FUCHSIA #if (FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG) -#if !OS_IOS || TARGET_OS_SIMULATOR +#if !OS_IOS && !OS_MACOSX // Debug mode uses the JIT, disable code page write protection to avoid // memory page protection changes before and after every compilation. PushBackAll(&args, kDartWriteProtectCodeArgs, @@ -351,7 +351,7 @@ DartVM::DartVM(std::shared_ptr vm_data, PushBackAll(&args, kDartDisableIntegerDivisionArgs, fml::size(kDartDisableIntegerDivisionArgs)); #endif // TARGET_CPU_ARM -#endif // !OS_IOS || TARGET_OS_SIMULATOR +#endif // !OS_IOS && !OS_MACOSX #endif // (FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG) if (enable_asserts) {