diff --git a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp index f0678d80717b..11de62a0de66 100644 --- a/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/hermes/HermesInstance.cpp @@ -112,7 +112,7 @@ class HermesJSRuntime : public JSRuntime { void unstable_initializeOnJsThread() override { // On new arch, we're seeing a crash in release optimized builds here. Adding this as a stopgap measure to prevent // the crash to allow us to more thoroughly test new arch while this is investigated. -#ifdef HERMES_ENABLE_PROFILING +#ifndef DISABLE_HERMES_PROFILING_WORKAROUND runtime_->registerForProfiling(); #endif }