Skip to content

Commit 017bf1a

Browse files
Nick Lefevermeta-codesync[bot]
authored andcommitted
Fix asan/tsan env options handling (#55753)
Summary: Pull Request resolved: #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
1 parent 984dbe8 commit 017bf1a

File tree

1 file changed

+1
-1
lines changed
  • private/react-native-fantom/runner

1 file changed

+1
-1
lines changed

private/react-native-fantom/runner/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function getBuckModesForPlatform(
7070
});
7171
}
7272
} else {
73-
if (EnvironmentOptions.enableASAN) {
73+
if (EnvironmentOptions.enableASAN && EnvironmentOptions.enableTSAN) {
7474
printConsoleLog({
7575
type: 'console-log',
7676
level: 'warn',

0 commit comments

Comments
 (0)