Skip to content

Commit

Permalink
Enable Thread-Safety Analysis by Default
Browse files Browse the repository at this point in the history
Summary:
With the new architecture of `AsyncDebuggerAPI`, we've limited the
multi-thread complexity to just that one class. Unlike the old
`CDPHandler`, we no longer have recursive mutex that can't be checked
with Thread-Safety Analysis (TSA), so all the new code can be validated
at compile time using TSA.

Reviewed By: fbmal7

Differential Revision: D53622570

fbshipit-source-id: 05d8cce28578dbf41233131b4db4b010017b7a7f
  • Loading branch information
dannysu authored and facebook-github-bot committed Feb 9, 2024
1 parent 3dc4247 commit a8770ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ set(HERMES_USE_FLOWPARSER OFF CACHE BOOL
set(HERMES_ENABLE_WERROR OFF CACHE BOOL
"Whether the build should have -Werror enabled")

set(HERMES_THREAD_SAFETY_ANALYSIS OFF CACHE BOOL
set(HERMES_THREAD_SAFETY_ANALYSIS ON CACHE BOOL
"Whether to compile with clang's -Wthread-safety")

set(HERMES_ENABLE_WIN10_ICU_FALLBACK ON CACHE BOOL
Expand Down

0 comments on commit a8770ff

Please sign in to comment.