From 6d7e5c9adfa01ccbee7198c5306d01aa99434341 Mon Sep 17 00:00:00 2001 From: Patrick Mick Date: Tue, 21 Apr 2026 10:27:10 -0700 Subject: [PATCH] Inverse the flag here so that we have to opt out in our bazel configs rather than opt in --- .../ReactCommon/react/runtime/hermes/HermesInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }