From 017bf1a7f0836d153f125ec78388c8a5cfeeab80 Mon Sep 17 00:00:00 2001 From: Nick Lefever Date: Wed, 25 Feb 2026 13:19:50 -0800 Subject: [PATCH] Fix asan/tsan env options handling (#55753) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55753 The warning "ASAN and TSAN modes cannot be used together" was incorrectly displayed when only ASAN was enabled. This happened because the condition checked only `enableASAN` instead of `enableASAN && enableTSAN`. Updated the conditional logic to properly check that both flags are enabled before showing the conflict warning. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D94393117 fbshipit-source-id: f7a96de11230710e8d54c17d4c89edb569ebaa07 --- private/react-native-fantom/runner/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/react-native-fantom/runner/utils.js b/private/react-native-fantom/runner/utils.js index 31105f4c569..b7ccb6ea304 100644 --- a/private/react-native-fantom/runner/utils.js +++ b/private/react-native-fantom/runner/utils.js @@ -70,7 +70,7 @@ export function getBuckModesForPlatform( }); } } else { - if (EnvironmentOptions.enableASAN) { + if (EnvironmentOptions.enableASAN && EnvironmentOptions.enableTSAN) { printConsoleLog({ type: 'console-log', level: 'warn',